SwiftUI by Apple | Hello, SwiftUI Tutorial
๐ #1 Excited to share my journey diving into Swift with you all! ๐ Check out my latest findings as I explore Develop in Swift by Apple. Back to the basics is always a good idea, and learning something new is even better! #AppleJourney #SwiftDevelopment
๐ Topic: Explore Xcode / Hello, SwiftUI
๐ Tutorial Link: Hello, SwiftUI
https://developer.apple.com/tutorials/develop-in-swift/hello-swiftui
๐ Subtopics:
- Syntax Highlighting
- Importing SwiftUI: `import SwiftUI`
- Strings in SwiftUI: Watch out for โUnterminated string literalโ errors!
Views:
- VStack: Ideal for small subview counts; consider LazyVStack for many subviews.
Text: Display one or more lines of read-only text.
- Image: Display images effortlessly.
View Modifiers:
- Background
.background(.red)
- Padding
.padding
Order of Modifiers - Surprisingly affects view outcomes!
๐ Key Insights:
- Experimented with the impact of modifier order on view appearance. ๐
- Enjoyed the interactive question section at the end of the tutorial! ๐ค
๐ Observation:
- Noticed that Xcode projects were used instead of Playgrounds in example codes. Perhaps Playgrounds could offer a cleaner starting point for beginners.
Letโs keep learning and exploring together! ๐ก๐ป #SwiftUI #Xcode #DevelopInSwift #AlwaysLearning #Swift #Apple