#swiftui
Every summary, chronological. Filter by category, tag, or source from the rail.
SwiftUI State: Ownership Rules End View Redraw Bugs
Treat SwiftUI views as functions of state (UI = f(state)). Choose wrappers by ownership: @State for local simple values, @Binding to share edits, @StateObject for view-owned models, @ObservedObject for injected ones. Compute derived state, persist with @AppStorage.
SwiftUI NavigationStack: Typed Routes for Scalable Apps
Replace fragile NavigationLink hacks with NavigationStack, typed Hashable routes, and a central router: enables programmatic pushes/pops, deep links, and isolated tabs without state bugs.
Scale Liquid Glass UI with Tokens and One SwiftUI Modifier
Centralize Liquid Glass in iOS 26 apps using design tokens (e.g., card radius 28, stroke width 1), a single .glassSurface modifier with iOS 26 glassEffect fallback to ultraThinMaterial, and components like GlassCard for consistent, accessible glassy UIs that morph cohesively.
Showing 5 of 5