Swift Previews in UIKit

  Рет қаралды 3,545

Swift Arcade

Swift Arcade

Күн бұрын

SwifUI / UIKIT / UIViewController / UIView
In this video we look at how to add SwiftUI Previews to UIKit applications. We cover UIViewControllers, UIViews, and how to leverage this cool preview technology in our apps today.
Courses
Data Structures & Algorithms
www.udemy.com/course/the-swif...
Level Up AutoLayout
www.udemy.com/course/level-up...
Level Up in Swift
www.udemy.com/course/level-up...
Source code
github.com/jrasmusson/swiftui
github.com/jrasmusson/swift-a...
Free e-Book getting started iOS
www.iostutorialbook.com/
Twitter
@jrasmusson

Пікірлер: 23
@user-ez3sm4vw1s
@user-ez3sm4vw1s Жыл бұрын
The Best Instructor! Thank you very much!
@mattdamon2532
@mattdamon2532 3 жыл бұрын
Thank you. I cannot wait to watch the combine tutorial.
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Me too :)
@MrJoeYellow
@MrJoeYellow 3 жыл бұрын
As always great tutorial!! Your channel is awesome!
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Thank you LeoT. Much appreciated.
@nileshjdarji
@nileshjdarji 3 жыл бұрын
Awesome. Thanks.
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Most welcome Nilesh. Cheers.
@maryamchaharsooghi430
@maryamchaharsooghi430 3 жыл бұрын
Perfect 👌🏻
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Thanks Maryam. Glad you enjoyed it.
@danielkunin3852
@danielkunin3852 3 жыл бұрын
🔥🔥🔥
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Thanks Daniil :)
@jsedlacekjr
@jsedlacekjr 2 жыл бұрын
Do you need to build views programmatically for this to work?
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Hi James. Good question. Though I haven't yet tried it I suspect no. This should work with nibs too. Have not tried with storyboards. But I don't think its limited to programmatic only. Cheers.
@MarcoCarmonaT
@MarcoCarmonaT 3 жыл бұрын
Is that a LG Ultrawide monitor?
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Dell. Sorry - I meant to increase the font size when I recorded but forgot. Apologies.
@MarcoCarmonaT
@MarcoCarmonaT 3 жыл бұрын
@@swiftarcade7632 You're fine, thank you!
@devin3575
@devin3575 2 жыл бұрын
If anyone else has an issue like I did where the SwiftUI preview canvas doesn't appear automatically, Command-Option-Return toggles it.
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Great tip Devin. Thx. SwiftUI previews is still a bit shakey.
@devin3575
@devin3575 2 жыл бұрын
@@swiftarcade7632 No problem. Yeah actually it's funny you mention that. I'm messing around with it right now and it isn't quite a real-time preview for me. As you change "Button3" to "Button Hello" you're seeing updates with every key pressed. For me it doesn't update until I hit Return to go to the next line of code or hit Command-Option-P. Any idea what might be happening?
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
@@devin3575 No idea. I think it depends on the layou and the power of your machine/laptop. Sometimes it works. Sometimes it doesn't. I found I still needed to run in the simulator to see what was really happening. It will get there. It will just take some time. Cheers.
@oleg991
@oleg991 3 жыл бұрын
I guess this does not work in certain situations. For example, on MacBook with m1 chip this does not work. Anyway swiftui projects work perfectly.
@swiftarcade7632
@swiftarcade7632 3 жыл бұрын
Hmm interesting Oleg. Not sure why. It should! Thanks for the comment.
@philipmurray4065
@philipmurray4065 Жыл бұрын
@@swiftarcade7632 i m on iMac m1 chip and get this error "xxxx app quit unexpectedly. Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple."
Getting started with Combine + UIKit in Swift
23:45
Swift Arcade
Рет қаралды 17 М.
The secret to the UIScrollView
11:44
Swift Arcade
Рет қаралды 12 М.
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 79 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 34 МЛН
1 or 2?🐄
00:12
Kan Andrey
Рет қаралды 27 МЛН
Swift - Stack vs Heap
9:58
Swift Arcade
Рет қаралды 7 М.
Learn the Essentials of Swift in one hour
58:14
Paul Hudson
Рет қаралды 175 М.
Getting started with the Spotify iOS SDK
27:14
Swift Arcade
Рет қаралды 12 М.
What are Container View Controllers?
14:30
Swift Arcade
Рет қаралды 2,8 М.
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 48 М.
Why Does Scrum Make Programmers HATE Coding?
16:14
Thriving Technologist
Рет қаралды 497 М.
Economist explains why India can never grow like China
23:47
Money & Macro
Рет қаралды 332 М.
Swift iOS How to update your view when keyboard appears
13:11
Swift Arcade
Рет қаралды 10 М.
Что не так с яблоком Apple? #apple #macbook
0:38
Не шарю!
Рет қаралды 161 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 37 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,4 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 2,3 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 519 М.