Apple Journey | Hello, SwiftUI Tutorial

SwiftUI by Apple | Hello, SwiftUI Tutorial

Tony Trejo

--

๐Ÿš€ #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

--

--