Integrating SwiftUI into UIKit Apps
  • Books
  • Downloads
  • Table of contents
  • Introduction
  • 1.SwiftUI essentials
  • 1.1Views and scenes
  • 1.2State and view updates
  • 1.3Data management
  • 1.4View modifiers
  • 1.5Layout
  • 1.6Accessibility
  • 1.7Previews in Xcode
  • 2.SwiftUI in a separate view controller
  • 2.1Presenting UIHostingController programmatically
  • 2.2Setting up Hosting Controller in storyboards
  • 2.3Subclassing UIHostingController
  • 3.SwiftUI in an embedded view
  • 3.1Programmatically embedding a SwiftUI view
  • 3.2Adding a SwiftUI view in storyboards
  • 4.SwiftUI in collection view cells
  • 4.1Creating custom cells using UIHostingConfiguration
  • 4.2Styling collection cells in SwiftUI
  • 4.3Managing cell interactions
  • 5.SwiftUI in widgets
  • 5.1Setting up a widget extension
  • 5.2Supporting multiple widget sizes
  • 5.3Adding Lock Screen widgets
  • 6.UIKit in SwiftUI
  • 6.1Migrating from UIKit to the SwiftUI app lifecycle
  • 6.2Embedding a UIView into SwiftUI
  • 6.3Wrapping a UIViewController into a SwiftUI view

SwiftUI essentials

  • overview of SwiftUI fundamentals
You need to purchase the book to read this chapter.Learn more about the bookAlready have a copy? Request access.
Nil CoalescingAboutBlog
© 2022 NIL COALESCING LIMITED