SwiftUI.cc
SwiftUI collection

Drawing SwiftUI reference

Focused SwiftUI drawing pages with original examples, usage guidance, and implementation notes.

Showing 1-5 of 5 reference pages

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

Swift Charts builds charts from marks — BarMark, LineMark, PointMark, AreaMark, SectorMark — each mapping data fields to visual position, with foregroundStyle(by:) for series.

5 min readOpen