# How To Make an App Like RunKeeper with Swift: Part 2

**URL:** <https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917>\
**Category:** 🎓 Courses & Articles\
**Created:** [March 4, 2016, 12:27pm UTC](https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917 "2016-03-04T12:27:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zedenem](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/zedenem/32/106229_2.png) [@zedenem](https://forums.kodeco.com/u/zedenem)\
**Post date:** [March 4, 2016, 12:27pm UTC](https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917/1 "2016-03-04T12:27:07Z")

</div>

Learn how to add achievements and banners to encourage users in the final part of this two-part tutorial on making an app like RunKeeper!

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/1744-how-to-make-an-app-like-runkeeper-with-swift-part-2](https://www.raywenderlich.com/1744-how-to-make-an-app-like-runkeeper-with-swift-part-2)

---

<div class="post-metadata">

**Author:** ![pawel552](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/pawel552/32/57584_2.png) [@pawel552](https://forums.kodeco.com/u/pawel552)\
**Post date:** [February 15, 2017, 4:03pm UTC](https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917/2 "2017-02-15T16:03:28Z")

</div>

Hi!  
Any chance to rewrite this tutorial to Swift 3?  
Final project doesn’t work because of lot of language changes.

Cheers.

---

<div class="post-metadata">

**Author:** ![sunlite](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sunlite/32/81494_2.png) [@sunlite](https://forums.kodeco.com/u/sunlite)\
**Post date:** [March 6, 2017, 1:22pm UTC](https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917/3 "2017-03-06T13:22:48Z")

</div>

It’s really a pity that cannot run the Sample code, hope to get the new swift version soon 🙂 thanks!

---

<div class="post-metadata">

**Author:** ![jeremybroutin](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jeremybroutin/32/74754_2.png) [@jeremybroutin](https://forums.kodeco.com/u/jeremybroutin)\
**Post date:** [May 6, 2017, 8:01pm UTC](https://forums.kodeco.com/t/how-to-make-an-app-like-runkeeper-with-swift-part-2/6917/4 "2017-05-06T20:01:04Z")

</div>

Thanks a lot for this great tutorial! I was able to convert the few required changes for Swift 3 and to have the app run!  
I believe there is one small issue with the logic of the sample code to display badge while the user is running (in `NewRunViewController` therefore): it always restart the badge from the very first one, but a user might expect to re start from the last badge earned instead.

We would need to check for existing badge and adapt the logic of `BadgeController nextBadgeForDistance(_:)` to achieve this, I will give it shot as soon as I can 🙂
