Your First iOS & SwiftUI App: An App from Scratch
Jan 11 2022 · Swift 5.5, iOS 15, Xcode 13
Part 3: Coding in Swift
Leave a rating/review
Welcome to the final part of Your First iOS and SwiftUI App: An App from Scratch!
In this part, you’ll finally finish up the “must haves” in your programming to-do list, by adding the point calculation into the game.
You’ll start off by taking a deeper look at the Swift Standard Library, which is a library of functions written by engineers at Apple that you can use in your Swift code, and you’ll use it to generate a random target number in Bullseye.
You’ll then learn about the concept of Unit Testing, which is basically code you write that tests your other code. You’ll add some Unit Tests to make sure the Bullseye data model is working the way you want, and learn about how you can incorporate Unit Testing into your daily developemnt workflow with Test-Driven development.
In the remaining episodes, you’ll write the code to calculate the points for the game, in a few iterations from nieve to ideal. Along the way, you’ll learn about some fundamental techniques of coding with Swift, such as if/else statements, variables vs. constants, type inference, and more. You’ll also get a lot of practice with some things we covered in previous sections, because it’s all about learning via repetition.
So suit up…
…and get ready to get Swifty!