Available from Gumroad
SwiftUI changed everything for for developers targeting Apple platforms and “A SwiftUI Kickstart” is designed to quickly get experienced Swift developers up and running with clear code-along examples. This book has been updated for Swift 6, Xcode 16, and iOS 18.
Whether you are developing for iOS, macOS, iPadOS, WatchOS, or all of them at once, SwiftUI forces you to rethink how to create your UI and how to communicate and respond to changes in state in different nooks and crannies of your app.
SwiftUI takes advantage of the best of the Swift Programming language to allow you to build complicated interfaces from lightweight, composable, modifiable, and disposable views such as Text, Image, and Shapes.
This book shows you how to get the most out of these fundamental building blocks and the components you’ll use to compose them including VStack, HStack, ZStack, and GeometryReader.
You'll accept user input from Buttons, TextFields, Pickers, and Sliders and then flow the data through your app using ordinary properties, State, Bindings, ObservedObjects, StateObjects and EnvironmentObjects.
You’ll fit a ton of information onto a screen using ScrollViews, Lists, and Grids as well as Expanding Lists and DisclosureGroups. One screen is never enough so you’ll build navigation into your apps using Sheets, TabViews, and NavigationViews.
A SwiftUI Kickstart introduces you to the light-weight, value-typed, declarative world of SwiftUI.
You need a Mac running the latest version of Xcode as this book has been updated to the very latest versions of SwiftUI, Swift, and Xcode.
Chapter 1: Let's Get Started
Hello, World!
Previews
ContentView
Links and Credits
Version History
Road Map
Chapter 2: Create, Configure, and Layout
Value Types
Views
Some
ViewBuilders
StackViews
Positioning Views
Modifying Views
Result Builders
Generics in Result Builders
Chapter 3: Call to Action
Buttons
State
Properties
View Modifiers
Closures
Bindings
Observable Objects
Observable
Chapter 4: Lists and Grids
Simple Grids
Labels
ForEach
Lists
List Actions
Grids
Sections and DisclosureGroups
Expanding Lists
Chapter 5: Navigation and App Data Flow
Tab Views
Text Input
Policies
Sheets
Connecting Everything
Navigation
Page Tab Views
Training from Dim Sum Thinking