Use SwiftUI in an existing UIKit project

preview_player
Показать описание
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.

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
Рекомендации по теме
Комментарии
Автор

That's a great overview, Mike, thanks. It's interesting to see the different use cases of using SwiftUi with UIKit. I'm not entirely clued up on Combine, but it's nice to see that it can be used in tandem.

nathanlawlor
Автор

Great job Mike, I'm a mid level iOS developer from India and your videos are gold for me. Expecting more from you

vinodbhaskar
Автор

Great video Mike! Good production quality - I wish I knew more about Swift though! 😅

tomwalczak
Автор

Thank you watching you from Africa Zambia 🙏🙏

mosesmpandeprogramer
Автор

Great job. But I have a question at 7:01 . You have added the view of the progress bar as the parent's subview. But should we add the progress bar as a child view? Didn't we add the progress bar view in the stack view? Thanks in advance.

absarrahman
join shbcf.ru