Adding SwiftUI To An Existing UIKit Storyboard Project - Learn SwiftUI For iOS
Vložit
- čas přidán 27. 08. 2024
- Get the full course with source code and lectures - www.udemy.com/...
In this learn to code tutorial on SwiftUI App Development for iOS, we will learn how to take an existing UIKit based project with View Controllers and Storyboards and add a SwiftUI ContentView with ease.
To do this, we will take advantage of a new SwiftUI object, the UIHostingController.
Couldn’t you just do embed in navigation controller to add a nav bar with a back button?
thank you!
what if I want to add a second SwiftUI view controller Any suggestions?
Are you able to preview the swiftui view in this project?
All I get is a blank page. That page executes the code just fine... but I can't see a thing.
after (rootView: ContentView()) im getting this error: insert 'data:' any idea how to fix ?
I'd like to do the reverse, can you please provide the link
yes mee too
Is it possible to do it in a storyboard project with minimum 12 version?
Yes, infact you can mix languages. Apple made it easy to streamline multiple languages into a project.
SwiftUI is only available in ios 13
You talk way too much
he explains everything really well - just turn the sound off to follow instead of complaining :p ;)