Browse SwiftUI reference pages
Original examples, API notes, use cases, pitfalls, and checklists organized around the major SwiftUI view and modifier groups.
Use Canvas when a visual is easier to draw than compose from many nested views, such as sparklines, badges, waveforms, and lightweight charts.
Resize bitmap images and SF Symbols predictably by separating intrinsic image behavior, content mode, and symbol styling.
Build reusable visual primitives with Shape, Path, stroke, fill, and trim instead of baking every decoration into image assets.
Choose linear, radial, angular, image, and mesh-style fills based on the job the color is doing in the interface.
Use alerts for urgent decisions and confirmationDialog for action choices that can adapt across iPhone, iPad, and macOS.
Present focused secondary work with sheets, popovers, and detents while keeping dismissal and size behavior explicit.
Place primary and secondary commands in toolbars with predictable placement, grouping, tinting, and keyboard-aware behavior.
Layer views deliberately with background, overlay, and zIndex while keeping the base layout stable.