Speeding Up UIKit Development with SwiftUI UIKit Integration UIViewControllerRepresentable

preview_player
Показать описание
One of my favorite features of SwiftUI is the ability to preview not only Views but also UIViewControllers in Xcode. No longer do we have to run the simulator a billion times when modifying UI elements inside our view controllers. Moreover, we can create multiple previews to make this process even easier to visualize what your final application displays.

AppStore JSON APIs

Tinder Firestore Swipe and Match

Twitter Slide Out Menu Course

Podcasts Course

Intermediate Training Core Data

Instagram Firebase Course

Facebook Group

Hackintosh Build
Рекомендации по теме
Комментарии
Автор

Thanks, mate. The simplest tutorial I’ve found for integrating UIKit into an existing SwiftUI view I’ve found. Helped me out a lot.

ianwebster
Автор

ooooh i see what you did there you answered my question,
"Don't do drugs"

thanks professor brain, keep it PMA

MoeSawalha-
Автор

Super interesting stuff! Thanks for your trailblazing...

rogerprice
Автор

Hey Brian... you stand out of others in providing the good iOS content

sreekanthiragam
Автор

Thats awesome ! Thanks for sharing <3

blazefrostrider
Автор

So you build a UIViewControllerRepresentable struct to wrap around your UIKit viewcontroller, I get how displaying the UIKit ViewController is taken care of but what if the controller fetches information that you need to update other views. How would you get that information from the UIViewControllerRepresetable wrapper. For instance the UIKit viewcontroller you wrapped does some kind of REST call and you need that information to populate a SwiftUI list view. Don't know if I am asking this the right way

Jason
Автор

Although I will be on a trip in 2 years which kind of makes it useless for me ATM, this is literally something that is great. It makes complex collection views turn into a couple of lines of code. 90% of IOS apps are based around table views, this saves you a ton of time. Swift UI is not some random framework off the internet, it’s something that’s supported by apple.

decreer
Автор

Can you go the other way, though?
If I have my app built on UIKit, can I add new ViewControllers I haven’t developed yet with SwiftUI and have it work well with my UIKit previous code?

tapizquent
Автор

Do you have a tutorial for how to make a subview go full screen as you did in this demo?

adityabhati
Автор

could you please make a tutorial about making tab bar(TabbedView) with swiftUI please😭. thank you so much

tiaram.
Автор

The moment he say “Hello Children” I exited the video lol

judedavis
Автор

Hi Brian, would you be doing a hybrid (UIKit and SwiftUI) in your upcoming videos/courses?

shingetzu
Автор

Great video. Do I need the latest swift version to use swiftUI preview? If my project is compiled with swift 3.2, do I need to migrate to latest swift first? Thank you.

chekiechen
Автор

Without using Swift UI, does anyone know how to get that feature where you have user profiles on top like that? For example I have a collection view that displays post, above the collection view I wanted to add a horizontal collection view that displays people to follow. How can I do this?

kidrainen
Автор

Hi Brian! Awesome tutorial, but I have a question: what would happen at the time of previewing a ViewController which is actually fetching data from internet? Would the preview wait for the data and keep rendering in real-time after it, or will it just render the "default" state of the VC?



Thanks in advance!

carlostriana
Автор

What's with all these accents Brian 😂

tet
Автор

Could you please share the source code

moayadkom
Автор

If i try to run my project on an older iOS simulator for testing purposes, lets say iOS12, it doesn't let me run it. did you manage to fix this issue?

avalanched
Автор

I just get a white screen on preview. My app should show a map, interestingly the map shows for a couple seconds then disappears. Any ideas?

crazyjoeybb
Автор

Hello Brain,

I have been using Xocde 10, but i wanted to download Xcode 11 beta to create dummy projects and to try SwiftUI. But after i downloaded the Xcode 11 beta, i saw recent projects on launch screen were same. How can i seperate recent folders. Because i don’t wanna see my dummy project which i created on Xcode 11beta to appeared on my Xcode 10’s recent projects.

Thank you so much

burakakn
welcome to shbcf.ru