Tutorials Educator Guide
Develop in Swift Tutorials are a great first step toward a career in app
development using Xcode, Swift, and SwiftUI. They re designed for
aspiring coders in high school, higher education, and beyond.
In each chapter, learners will complete:
A tutorial A wrap-up
• Coding a project, ranging from an app • Review of concepts
prototype to a fully functioning app • Ideas for extending an app
• Building on prior knowledge, getting • Suggestions for how to apply skills in a different
progressively more challenging context, often by creating a new project
Choose your approach: You can present the content linearly, or you can incorporate other text,
documentation, tutorials, videos, and projects to fit your needs. One option is to have learners
complete the tutorial independently, then choose items from the “Continue practicing” section to
complete together, allowing learners to work collaboratively and ask questions.
’
SwiftUI foundations
Get familiar with the tools and technologies you ll use to create apps.
Chapter Description Topics and skills covered Estimated time*
Explore Get to know Xcode and SwiftUI by • Background • Modifiers • Views 1 hr
Xcode creating a prototype of a messaging • Color • Padding • Xcode error
app. Learn about syntax for Swift and • Creating a new • String messages
how to use the source editor and project • Swift syntax • Xcode Library
preview. • Dot notation • Text
Views, Learn how to build a custom view to • Arguments and • Foreground style • SF Symbols 1.5 hrs
structures, create a multiday weather forecast. In parameters • Image • Stored properties
and your view, you ll use properties to • Bool • Initializers • String interpolation
properties customize the display for each day. • Computed • Int • Structures
properties • HStack and VStack • Subviews
• Custom subviews • Returning a value • Type annotation
• Font
Layout and Build two onboarding screens for an iOS • Accent color • Font • TabView
1.5 hrs
style app to learn useful tools for putting • Arrays • Frames • Transparency
views where you want them onscreen • Borders • Gradient • Type inference
and inspecting their size. Define new • Brightness • Image • ZStack
colors in the asset catalog and use • Color assets • Pinning a preview
them to create gradient backgrounds. • Customizing a • Shape
preview • Spacer
Buttons Explore adding buttons to your apps. • Animation • Disabling controls • Range operator 1.5 hrs
and state Learn about Swift closures and their • Aspect ratio • Dynamic sizing • Resizable images
relationship to buttons. Use state • Assignment • Equality operator • @State
properties to update the user interface operator • ForEach • Trailing closure
automatically. • Button • Hierarchical SF syntax
• Button styles Symbols • View tint
• Closures • Randomization
• Color
Lists and text Create a dynamic interface that stores a • Arrays • Disabling • Symbol rendering 1.5 hrs
fields set of items in an array and displays • Adding and autocorrection modes
them using lists. Use text fields and removing from • Clip shapes • Ternary conditional
bindings to let people enter text. arrays • ForEach operator
• Bindings • List • TextField
• Buttons with • Not (!) operator • Toggle
custom labels
*Estimated times are for the tutorial only.
’
’
Data modeling
Use SwiftData to store and load information for your app.
Chapter Description Topics and skills covered Estimated time*
Models and Build a list of your friends • Calendar • Date formatting • Safe area 1.5 hrs
persistence birthdays, using SwiftData • Classes • @Environment • @Model macro
to save and retrieve that • Data models • Frameworks • SwiftData context
• Date • NavigationStack • @Query macro
data across launches.
• DatePicker
Data editing Create an app to track • @Bindable • Group • NavigationLink 2 hrs
and someone s favorite movies • ContentUnavailableView • Modal interfaces • NavigationSplitView
navigation using SwiftData to manage • Creating sample data • Multiple previews • Refactoring
the model objects. Use a • Environment dismiss • ModelConfiguration • Schema
value • ModelContainer • Sheets
query to display the • Form • Navigation hierarchies • Toolbars
movies in a list, and make
a detail view to edit them.
Relationships Learn how to create and • Custom view initializers • Property wrappers • Sorting arrays 2.5 hrs
and queries display relationships • Or (||) operator • Model relationships • View tags
• Picker • Search
between data. Then
explore more advanced • Predicate • Section
features of SwiftData
queries.
*Estimated times are for the tutorial only.
’
’
Spatial computing
Design app experiences for spatial computing.
Chapter Description Topics and skills covered Estimated time*
Windows in Create your first visionOS app • Circle • GridRow • visionOS simulator 1 hr
visionOS with a window using SwiftUI. • ColorPicker • Padding for 3D views • Window
• Double • Remainder (%) operator resizability
• Grid • Slider • Windows
Volumes in View 3D content from any angle in • Arrays • Model3D • Toolbars 1.5 hrs
• DragGesture NavigationSplitView • Volumes
visionOS the Shared Space using Reality •
Composer Pro and SwiftUI. • Environment • Reality Composer Pro • WindowGroup
openWindow • Rotation in three
value dimensions
*Estimated times are for the tutorial only.