SwiftUI Dev Tutorial #3: Buttons & State | Learn Xcode (2025)

Опубликовано: 10 Январь 2025
на канале: NDC
230
8

🔗 Follow Along with Apple’s Tutorials: https://developer.apple.com/tutorials...
PART 1:    • SwiftUI Tutorial For Beginners | Learn Xco...  
PART 2:    • SwiftUI Dev Tutorial #2: Design an Interfa...  

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!

Beginner Tutorial playlist:    • SwiftUI Beginner Tutorial (Apple Developer...  
Intermediate playlist:    • SwiftUI Intermediate Tutorials | Apple Dev...  

🔥 Download My Project Files & More! 🔥
👉 Get the source code for this project & other Swift resources here:
🔗 https://ndcswift.github.io/Swift-Proj...
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