Contained in: Integrating UIKit & SwiftUI
swiftui
Video Course
iOS & Swift
Integrating UIKit & SwiftUI
Dec 22 2020 · Video Course (25 mins)
Learn how to integrate SwiftUI views into your UIKit apps and view hierarchies, and how to host UIKit views and view controllers in SwiftUI. Coordinate data flow from SwiftUI to UIKit and back again…
iOS & Swift
Replace a UIViewController with a SwiftUI View
Dec 22 2020 · Lesson
…easy way to start using SwiftUI is to add some to your existing UIKit apps! Replace a UIViewController with a SwiftUI view in the storyboard, and manage data flow between SwiftUI and the rest…
iOS & Swift
Use a PHPickerViewController in SwiftUI
Dec 22 2020 · Lesson
SwiftUI doesn't have a native photo picker, so you'll need UIKit's help to pick photos from your app. Learn how to use the new PHPicker in your SwiftUI apps…
iOS & Swift
Embed a SwiftUI View in UIKit
Dec 22 2020 · Lesson
…have to replace entire view controllers to get started with SwiftUI. You can embed SwiftUI views right into your view hierarchy from the storyboard with the help of @IBSegueAction…
iOS & Swift
Host a UIKit View in SwiftUI
Dec 22 2020 · Lesson
UIKit has a view or control that you need in your SwiftUI app, you can integrate it with UIViewRepresentable…
iOS & Swift
Implement a UIKit Delegate with a Coordinator
Dec 22 2020 · Lesson
SwiftUI doesn't make much use of the delegate pattern, but it's required for many UIKit controls like the PHPicker. Use a coordinator to add the delegates you need to host UIKit views…
iOS & Swift
Use Target Action with a Coordinator
Dec 22 2020 · Lesson
…coordinator can help you out with more than delegates! You can also use it to implement target action for UIKit controls in SwiftUI…