SwiftUI.cc
Latest SwiftUI references

Latest SwiftUI references

Newest published SwiftUI reference pages, ordered by update date with practical examples and implementation notes.

Showing 1-9 of 77 reference pages
Page 1 of 9Next

Use Canvas when a visual is easier to draw than compose from many nested views, such as sparklines, badges, waveforms, and lightweight charts.

5 min readOpen

Resize bitmap images and SF Symbols predictably by separating intrinsic image behavior, content mode, and symbol styling.

4 min readOpen

Build reusable visual primitives with Shape, Path, stroke, fill, and trim instead of baking every decoration into image assets.

5 min readOpen

Choose linear, radial, angular, image, and mesh-style fills based on the job the color is doing in the interface.

5 min readOpen

Use alerts for urgent decisions and confirmationDialog for action choices that can adapt across iPhone, iPad, and macOS.

4 min readOpen

Present focused secondary work with sheets, popovers, and detents while keeping dismissal and size behavior explicit.

5 min readOpen

Place primary and secondary commands in toolbars with predictable placement, grouping, tinting, and keyboard-aware behavior.

4 min readOpen

Control layout by combining flexible frames, padding, fixedSize, and layoutPriority rather than guessing with offsets.

5 min readOpen

Layer views deliberately with background, overlay, and zIndex while keeping the base layout stable.

4 min readOpen