Your First iOS & SwiftUI App: An App from Scratch

Feb 13 2023 · Swift 5.7, iOS 16, Xcode 14

Part 3: Coding in Swift

20. Introduction

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 19. Conclusion Next episode: 21. The Swift Standard Library

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

Welcome to the final part of your first iOS and Swift UI app and 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. Then you'll 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 how you can incorporate unit testing into your daily development 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 naive to ideal. Along the way, you'll learn about some fundamental techniques of coding and Swift, such as if/else statements, variables and 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.