Blog Topics: SwiftUI

Beginner SwiftUI

  1. Your first SwiftUI view explained - Body, some View, modifiers
  2. @State basics: Making views interactive - Simple counter example
  3. VStack, HStack, ZStack demystified - Layout fundamentals
  4. Lists and ForEach: Displaying data - Identifiable, indices
  5. NavigationStack basics - Push, pop, navigation paths
  6. Buttons and tap gestures - Action closures, styling
  7. Text and fonts in SwiftUI - Modifiers, custom fonts
  8. Images and SF Symbols - Resizable, aspect ratio, symbols
  9. Sheets and fullScreenCover - Modal presentation
  10. Alerts and confirmation dialogs - New iOS 15+ API

Intermediate SwiftUI

  1. @Binding explained: Two-way data flow - Parent-child communication
  2. @EnvironmentObject vs @Environment - When to use which
  3. ObservableObject done right - @Published, objectWillChange
  4. @Observable macro (iOS 17) - Migration from ObservableObject
  5. Form and settings screens - Toggle, Picker, Stepper patterns
  6. TabView with badges - Custom tabs, programmatic selection
  7. Searchable modifier - Adding search to lists
  8. Pull to refresh with .refreshable - Async refresh patterns
  9. Context menus and swipe actions - List interactions
  10. Toolbar modifier - Navigation bar items, bottom bars

Advanced SwiftUI

  1. View identity and structural identity - Why views rebuild
  2. EquatableView for performance - Preventing unnecessary redraws
  3. ViewBuilder and result builders - Creating DSL-like APIs
  4. AnyView and type erasure: When to use - Performance implications
  5. MatchedGeometryEffect - Hero animations between views
  6. Canvas for custom drawing - High-performance rendering
  7. TimelineView for live updates - Clocks, animations, widgets
  8. Layout protocol (iOS 16) - Custom container layouts
  9. ContainerRelativeShape - Widgets and adaptive corners
  10. FocusState for keyboard control - Form navigation, focus rings

iOS 17/18 New Features

  1. @Bindable explained - New binding for @Observable
  2. #Preview macro - Replacing PreviewProvider
  3. NavigationSplitView - iPad/Mac navigation patterns
  4. ContentUnavailableView - Empty states done right
  5. Inspector modifier - Side panels on iPad/Mac
  6. ScrollViewReader vs scrollPosition - New iOS 17 scrolling
  7. sensoryFeedback modifier - Haptics made easy
  8. symbolEffect modifier - Animated SF Symbols
  9. phaseAnimator - Multi-step animations
  10. keyframeAnimator - Complex animation sequences

High-Traffic SwiftUI Searches

  1. “Cannot find type in scope” SwiftUI - Import issues
  2. “View body is too complex” - Splitting large views
  3. SwiftUI list not updating - Identifiable, ForEach gotchas
  4. Keyboard not dismissing - FocusState, resignFirstResponder
  5. Navigation bar title not showing - Modifier order issues
  6. Image not resizable - Common modifier mistakes
  7. Sheet not presenting data - Optional binding issues
  8. ScrollView not scrolling - Frame, geometry issues
  9. Background color not filling screen - ignoresSafeArea
  10. Custom back button in NavigationStack - Hiding default button

SwiftUI + Frameworks

  1. SwiftUI + MapKit - Map, annotations, camera position
  2. SwiftUI + Charts - Line, bar, pie charts basics
  3. SwiftUI + PhotosPicker - Image selection made easy
  4. SwiftUI + ShareLink - Native sharing
  5. SwiftUI + StoreKit 2 - In-app purchases UI
  6. SwiftUI + AVKit - Video player integration
  7. SwiftUI + WebKit - WKWebView wrapper
  8. SwiftUI + CoreLocation - Location permissions, updates
  9. SwiftUI + LocalAuthentication - Face ID, Touch ID
  10. SwiftUI + WidgetKit - Timeline, configuration