SwiftUI Dev Tutorial #3: Buttons & State | Learn Xcode (2025)
🔗 Follow Along with Apple’s Tutorials: https://developer.apple.com/tutorials/develop-in-swift/update-the-ui-with-state PART 1: https://youtu.be/_utOlpGlhes PART 2: https://youtu.be/XV423QnB4dQ SwiftUI Beginner Tutorial – Part 3 🚀 In this video, we continue our journey through Apple’s "Develop in Swift" series by exploring Buttons and State. This tutorial is all about adding interactivity to your apps and updating the UI dynamically. You’ll learn to: 🎨 Create Buttons: Add tappable elements to trigger actions. 🛠 Manage State: Use @State properties to keep your UI in sync with your app's data. 🎥 Add Animations: Bring your app to life with smooth transitions. 🎲 Randomize Content: Add fun and dynamic features like shuffling content. 🎉 By the end of this video, you’ll understand how to use buttons and state to build truly interactive apps in SwiftUI! Clone or download the full demo project here: 📁 GitHub Repo: Beginner Tutorial playlist: https://www.youtube.com/playlist?list=PLbeGXTt3IOd_ofjQ5wBo-rsvX7KisFE5D Intermediate playlist: https://www.youtube.com/playlist?list=PLbeGXTt3IOd__fVP9U2n5W3vkCZn3p14v 🔥 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. Timestamps 0:00 – Welcome Back to the Series & Project Setup 1:45 – Creating DiceView 5:46 – Implementing Randomization with Buttons 7:41 – Use state to update a view 9:52 – Create a dynamic display of dice 17:18 – Adapt the interface for more dice 19:41 – Use images in button labels 22:07 – Improve your app design 26:52 – Check your understanding 28:22 – Recap and What’s Next
Download
0 formatsNo download links available.