Back to Browse

SwiftUI Dev Tutorial #5: Custom types and Swift Testing | Learn Xcode (2025)

470 views
Jan 20, 2025
1:23:22

🔗 Follow Along with Apple’s Tutorials: https://developer.apple.com/tutorials/develop-in-swift/custom-types-and-swift-testing Beginner Tutorial playlist: https://www.youtube.com/playlist?list=PLbeGXTt3IOd_ofjQ5wBo-rsvX7KisFE5D Intermediate playlist: https://www.youtube.com/playlist?list=PLbeGXTt3IOd__fVP9U2n5W3vkCZn3p14v SwiftUI Intermediate Tutorial – Custom Types and Testing 🚀 Welcome to the Data Modeling section of Apple’s "Develop in Swift" series! In this video, we’ll take your SwiftUI skills to the next level by introducing custom types and unit testing. Follow along to: 📚 Define Custom Types: Learn to use struct, enum, and UUID to model app logic. 🧪 Write Unit Tests: Catch bugs early by validating your code with tests. 🎨 Dynamic Layouts: Use Grids and GridRows to create dynamic interfaces. 🎉 By the end of this video, you’ll have a solid understanding of building reliable, reusable data models in SwiftUI. Clone or download the full demo project here: 📁 GitHub Repo: https://github.com/NDCSwift/ScoreKeeper 🔥 Download My Project Files & More! 🔥 👉 Get the source code for this project & other Swift resources here: 🔗 https://ndcswift.github.io/Swift-Projects/ Subscribe for more bite-sized lessons and full tutorials on Swift, SwiftUI, and UIKit. 0:00 – Intro & information 0:40 – What we'll be learning 1:00 – Welcome to Data Modeling 2:33 – Project Setup 2:55 – Create an app with a list of players 6:09 – Add scores 9:57 – Create your own player 18:35 – Improve your app design 23:23 – Testing App on Simulator 23:55 – Check Your Understanding 25:55 – Wrap-up: Model data with custom types 27:14 – Add functionality with Swift Testing 27:41 – Create the scoreboard 31:46 – Advance and reset the game state 42:19 – Create a unit test target 44:37– Test and implement your method 54:15 – Create a game settings view 1:00:17 – Declare winners 1:12:08– Crown your winners 1:17:08 – Improve your app design (Part 2) 1:20:32 – Check Your Understanding (Part 2) 1:21:57 – Wrap-up: Custom types and Swift Testing & Whats Next

Download

1 formats

Video Formats

360pmp4134.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SwiftUI Dev Tutorial #5: Custom types and Swift Testing | Learn Xcode (2025) | NatokHD