YUNOVA · iOS Development

Module 8: Advanced SwiftUI

Notes for offline study · 30 November 2026

SwiftUI animations and transitions

Key points

  • withAnimation wraps a state change so the views that depend on it animate.
  • The .animation modifier animates a view when a given value changes.
  • Transitions such as .opacity and .slide control how views are inserted and removed.

Custom view modifiers and ViewBuilder

Key points

  • A custom ViewModifier bundles styling you can reuse across views.
  • Expose it with a View extension so it reads like a built-in modifier.
  • @ViewBuilder lets a function or property return several views.

Swift concurrency: actors and tasks

Key points

  • async/await lets code wait for results without blocking a thread.
  • A Task starts asynchronous work; a TaskGroup runs several child tasks.
  • Actors protect mutable state so only one task touches it at a time.

Widgets with WidgetKit

Key points

  • Widgets are built with WidgetKit and SwiftUI views.
  • A TimelineProvider supplies entries that say what to show and when.
  • Widgets show glanceable information, not full app screens.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.