Speeding Up UIKit Development with SwiftUI UIKit Integration UIViewControllerRepresentable

  Рет қаралды 26,182

Lets Build That App

Lets Build That App

Күн бұрын

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
www.letsbuildthatapp.com/cour...
Tinder Firestore Swipe and Match
www.letsbuildthatapp.com/cour...
Twitter Slide Out Menu Course
www.letsbuildthatapp.com/cour...
Podcasts Course
www.letsbuildthatapp.com/cour...
Intermediate Training Core Data
www.letsbuildthatapp.com/cour...
Instagram Firebase Course
www.letsbuildthatapp.com/cour...
Facebook Group
/ 1240636442694543
Instagram: / buildthatapp
Twitter: / buildthatapp
Hackintosh Build
i9 9900k: amzn.to/2CvQj6v
ASUS Z390 Motherboard: amzn.to/2JpaQ2B
16GB Corsair Vengeance RGB RAM: amzn.to/2YbygvJ
Corsair H100i Platinum Water Cooler: amzn.to/2FnbM22
Thermaltake RGB Power Supply: amzn.to/2TgKDTu
Intel 1TB SSD: amzn.to/2Tkdk1V
Corsair 280x Computer Case: amzn.to/2WcjvH2
AMD Radeon 4GB RAM GFX Card: amzn.to/2TYMyAp
LG 34" Widescreen 3440 x 1440: amzn.to/2Tk7q0S
Rode NT1 Microphone: amzn.to/2TZgX1r
Focusrite Audio Interface: amzn.to/2U12gey
Panasonic GH4 DSLR: amzn.to/2U4BrG6
Magewell HDMI to USB3 Capture Card: amzn.to/2Jp2esI

Пікірлер: 69
@ianwebster8922
@ianwebster8922 4 жыл бұрын
Thanks, mate. The simplest tutorial I’ve found for integrating UIKit into an existing SwiftUI view I’ve found. Helped me out a lot.
@rogerprice6149
@rogerprice6149 5 жыл бұрын
Super interesting stuff! Thanks for your trailblazing...
@blazefrostrider
@blazefrostrider 5 жыл бұрын
Thats awesome ! Thanks for sharing
@salahsaoudi5745
@salahsaoudi5745 5 жыл бұрын
Welcome back fella!
@sreekanthiragam2305
@sreekanthiragam2305 5 жыл бұрын
Hey Brian... you stand out of others in providing the good iOS content
@MoeSawalha-
@MoeSawalha- 5 жыл бұрын
ooooh i see what you did there you answered my question , "Don't do drugs" thanks professor brain, keep it PMA
@briarmario9463
@briarmario9463 3 жыл бұрын
a tip : watch series at kaldroStream. I've been using it for watching loads of movies lately.
@andrejax6983
@andrejax6983 3 жыл бұрын
@Briar Mario Definitely, have been using Kaldrostream for since november myself :)
@muhammadvictor9539
@muhammadvictor9539 3 жыл бұрын
@Briar Mario Definitely, have been watching on kaldrostream for years myself :)
@AgentCell
@AgentCell 5 жыл бұрын
Marvelous video ol chap
@aaronhawkins3722
@aaronhawkins3722 5 жыл бұрын
Thanks Brian.
@nizz4m
@nizz4m 5 жыл бұрын
Creativity on the next level 😂😂!
@chekiechen
@chekiechen 5 жыл бұрын
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.
@tapizquent
@tapizquent 5 жыл бұрын
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?
@jensonjohn
@jensonjohn 5 жыл бұрын
Missing prof. Brian ☹️
@tet54
@tet54 5 жыл бұрын
What's with all these accents Brian 😂
@evelynlima3769
@evelynlima3769 4 жыл бұрын
He's been watching @UCmJi5RdDLgzvkl3Ly0DRMlQ's swiftui tutorials 😂
@evelynlima3769
@evelynlima3769 4 жыл бұрын
Paul Hudson ***
@shingetzu88
@shingetzu88 5 жыл бұрын
Hi Brian, would you be doing a hybrid (UIKit and SwiftUI) in your upcoming videos/courses?
@tiaram.9421
@tiaram.9421 5 жыл бұрын
could you please make a tutorial about making tab bar(TabbedView) with swiftUI please😭. thank you so much
@carlostriana3694
@carlostriana3694 4 жыл бұрын
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!
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
It does whatever the simulator does.
@carlostriana3694
@carlostriana3694 4 жыл бұрын
Lets Build That App woo, thanks for such a QUICK response!
@riccardotamiro6515
@riccardotamiro6515 5 жыл бұрын
If I wanted to put a navigationbutton on a function, how can I do it? Or use a function as "follow on swiftus.
@adityabhati313
@adityabhati313 4 жыл бұрын
Do you have a tutorial for how to make a subview go full screen as you did in this demo?
@decreer4567
@decreer4567 5 жыл бұрын
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.
@kidrainen01
@kidrainen01 5 жыл бұрын
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?
@Jason021376
@Jason021376 4 жыл бұрын
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
@burakakn3714
@burakakn3714 5 жыл бұрын
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
@burakakn3714
@burakakn3714 5 жыл бұрын
@@sergeykarchmit4268 Of course. This is an option but i was wondering is there anyway to completely separate the recent folder on launch screen?
@soheilpakgohar6630
@soheilpakgohar6630 5 жыл бұрын
you always surprising me ...
@tieda
@tieda 5 жыл бұрын
❤️
@riccardotamiro6515
@riccardotamiro6515 5 жыл бұрын
If I wanted to put a navigationbutton on a function, how can I do it?
@judedavis92
@judedavis92 3 жыл бұрын
The moment he say “Hello Children” I exited the video lol
@denizay2
@denizay2 4 жыл бұрын
This is fucking illuminating
@rahim7986
@rahim7986 5 жыл бұрын
WWDC 2019 hit Brian really hard; its just a stand Brian 😂
@avalanched
@avalanched 4 жыл бұрын
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?
@Ajay-.
@Ajay-. 4 жыл бұрын
SwiftUI only works with iOS 13 or later
@marcaupont9145
@marcaupont9145 5 жыл бұрын
Video great! Alter ego, meh... 😂
@arjun17289
@arjun17289 4 жыл бұрын
How fast it loads, whats your hardware specification
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
Checkout latest hackintosh build for all components
@moayadkom
@moayadkom 5 жыл бұрын
Could you please share the source code
@arinasawa2638
@arinasawa2638 5 жыл бұрын
How would you use frameworks like AV Foundation with Swift UI Only? I know this framework is new and you might not know, and it is annoying for people to ask you these kind of questions when this framework literally just came out, but I just hope this makes you explore swift UI more!
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
Assumptions are correct, it is annoying :)
@crazyjoeybb
@crazyjoeybb 4 жыл бұрын
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?
@nicwanavit5463
@nicwanavit5463 4 жыл бұрын
map is not supported in preview
@crazyjoeybb
@crazyjoeybb 4 жыл бұрын
@@nicwanavit5463 Damn, wish I had known this! Rebuilt the whole bloody app XD
@ZAP1able
@ZAP1able 4 жыл бұрын
How can I solve this problem ? "cannot preview in this file current target needs adjusted build settings"
@LetsBuildThatApp
@LetsBuildThatApp 4 жыл бұрын
SwiftUI previews is buggy sometimes. A quick restart fixes this bug for me. Also helps if the preview structs are not private.
@hispagamers
@hispagamers 5 жыл бұрын
Hi maestro
@CardinalHijack
@CardinalHijack 5 жыл бұрын
is this a new location? It looks different
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
Yeah I just moved all my stuff back up to the living room. Every few months I like to change spots.
@ryankanno2562
@ryankanno2562 4 жыл бұрын
lol love the accent
@yeilmusic
@yeilmusic 5 жыл бұрын
MONOPOLIZING swiftui videos xD
@maheshgvelly
@maheshgvelly 5 жыл бұрын
Please make a video on Watch OS APP WITH SWIFT UI
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
Bruh...
@maheshgvelly
@maheshgvelly 5 жыл бұрын
Hehe bruh take your time ...waiting badly
@w0mblemania
@w0mblemania 5 жыл бұрын
Please give us an update on Professor Brain. How is he doing?
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
He do very well, maybe come back for another episode
@w0mblemania
@w0mblemania 5 жыл бұрын
@@LetsBuildThatApp Hooray!
@darvikpatel
@darvikpatel 5 жыл бұрын
I love this accent😂
@tet54
@tet54 5 жыл бұрын
Wow seems like a lot of work just to get a preview
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
Maybe, but once you know the code, you typically just copy and paste and your done.
@namvarutube
@namvarutube 5 жыл бұрын
Try other accents as well :)) just at the end of videos, some fun ;)
@Himsdlee
@Himsdlee 5 жыл бұрын
I don't now know if you're using ur real accent or not
@fakeapplestore4710
@fakeapplestore4710 5 жыл бұрын
“Don’t do drugs” too late :/
@llothar68
@llothar68 5 жыл бұрын
How much does the lack of documentation, Q&A on stackoverflow, changing API's and the additional learning time cost you? It's not speeding up anything. Just like everyone learning swift before ABI stability was fucked you are for using SwiftUI in the next 3 years. Hint: Never use a technology less then 5 years old and 3 years after first large scale introduction. Bleeding edge is painful.
@LetsBuildThatApp
@LetsBuildThatApp 5 жыл бұрын
This video shows how to utilize previews for UIKit development, not SwiftUI. I suggest watching this again.
@dilsmatchanov
@dilsmatchanov 5 жыл бұрын
What the fuck is it? British?
Adv. Swift Combine Framework: Debounce Search Optimization
11:31
Lets Build That App
Рет қаралды 20 М.
UIKit - SwiftUI Integration
19:34
Stewart Lynch
Рет қаралды 3 М.
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 163 МЛН
SwiftUI Reactive Intro: State Management and Bindings
18:41
Lets Build That App
Рет қаралды 28 М.
Intro to Programmatic UI - UIKit | Xcode 14
17:39
Sean Allen
Рет қаралды 47 М.
Passing Values from SwiftUI to UIKit View
13:33
azamsharp
Рет қаралды 888