Перейти к содержимому

Use SwiftUI in an existing UIKit project

Mike Mikina

0:00 / 0:00

Use SwiftUI in an existing UIKit project

4 790 просмотров · 3 года назад
Mike Mikina
2,75 тыс. подписчиков
4 790 просмотров · 3 года назад
SwiftUI is here to stay. In this video I’m talking about using SwiftUI in an existing UIKit project. How to connect a SwiftUI view to the UIViewController and add a two way communication between them. Link to the repository: https://github.com/mikina/UIKitProjec... Previous video with the progress bar:    • Create an animated custom progress bar in ...   00:00 Intro 00:15 Start 00:52 Add SwiftUI view to the UIViewController 02:38 Don't forget about constraints 04:13 Add the interaction between SwiftUI and UIViewController 09:28 Add a PassthroughSubject to control SwiftUI view 11:15 Add the ViewModel 15:11 Call a function in UIKit from the SwiftUI 16:38 Outro #iOS #SwiftUI #UIKit #programming Music: Streambeats