SwiftUI.cc
SwiftUI.cc

SwiftUI reference pages, page 8

Continue browsing practical SwiftUI examples, API notes, pitfalls, and implementation checklists.

Showing 64-72 of 77 reference pages
PreviousPage 8 of 9Next

Label pairs icon and title with style-aware rendering; LabeledContent pairs a label with a value — the standard grammar for settings rows and detail screens.

3 min readOpen

GroupBox draws a rounded background container with optional label — the quickest native card, with automatic nesting contrast and backgroundStyle theming.

3 min readOpen

Form renders settings-style screens with platform-correct rows. Structure with Sections, headers and footers, headerProminence, and per-row background and inset control.

4 min readOpen

Style Text with dynamic type styles, fontWeight, fontDesign, and fontWidth; load custom fonts with relative scaling so typography still respects accessibility.

4 min readOpen

Pass format styles directly to Text — currencies, percents, dates, measurements, lists, and even live timers — and get localization for free.

5 min readOpen

Control how text behaves under pressure: lineLimit and reserved space, minimumScaleFactor shrinking, truncationMode, tightening, and line spacing.

4 min readOpen

Text literals parse Markdown — bold, italics, code, links — while AttributedString unlocks programmatic runs, custom attributes, and styled interpolation.

4 min readOpen

TextField binds editable text with a placeholder label, keyboardType for input-appropriate keys, textContentType for autofill, and capitalization and autocorrection control.

4 min readOpen

@FocusState moves the cursor programmatically, onSubmit chains fields through return, and onChange validates as users type — the wiring of real forms.

5 min readOpen