Learn SwiftUI for Free

A free and comprehensive guide to master SwiftUI. Getting value out of it? Want to get your brand featured on our community? Support the project. Become a patron here.


Views

Basics

Views, layouts, relationships and much more.

Layout Views

VStack, HStack, GeometryReader, ControlGroup, Table and much more.

Control Views

Button, DatePicker, Form, Label, Link, List, Menu and much more.

Other Views

Divider, Color, Image, Path and much more.

Paints

AngularGradient, ImagePaint, LinearGradient and much more.

Gestures

Drag Gesture, Rotation Gesture, Tap Gesture and much more.

Control Modifiers

Alert, ContextMenu, Popover, Sheet, Toolbar and much more.

Layout Modifiers

Background, FixedSize, Offset, Overlay and much more.

Effect Modifiers

Accent Color, Blur, Clipped, Mask, Opacity and more.

Image Modifiers

RenderingMode, Resizable and much more.

Other Modifiers

Disabled, Redacted, Preference and much more.

Custom Styles

ButtonStyle, LabelStyle, MenuStyle and much more.


Property Wrappers

@State

Used to declare a mutable state within a view.

@Binding

Used to create a two-way connection between a property in a child view and its parent view.

@Observable

One of the most powerful macros in SwiftUI.

@AppStorage & @SceneStorage

Persist data locally in the easiest way possible.

@Environment

A property wrapper used to access values from the environment within a view.

Data modifiers

OnChange and OnSubmit demystified.


Animations

Basics

Get started with animations in SwiftUI.

Animation Options

Duration, delay, scope and much more.

Spring Animations

Everything you need to know to use Spring animations like a pro.

Transitions

Master transitions for a delightful user experience.

Matched Geometry Effect

Creating smooth transitions between views.

Phase Animator

Modify the view at each individual step.


Support free SwiftUI education

Become a Patron