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
  • 7.SwiftUI integration in iOS 17
  • 7.1Bridging state between UIKit and SwiftUI with Observable
  • 7.2Using traits to pass values to SwiftUI

Managing cell interactions

  • adding swipe actions for UICollectionView list cells in SwiftUI
  • reacting to cell configuration changes to update cell appearance
You need to purchase the book to read this chapter.Black Friday offer is active now: 50% off!Learn more about the bookAlready have a copy? Request access.
Nil CoalescingAboutBlog
© 2023 NIL COALESCING LIMITED