Type Extensions in Swift and SwiftUI

  Рет қаралды 2,550

Stewart Lynch

Stewart Lynch

Күн бұрын

Пікірлер: 22
@iosprogramming1122
@iosprogramming1122 Жыл бұрын
Hey Stewart, sir, follow your video from my career first day. It is always helpful and motivating me to perform best.
@StewartLynch
@StewartLynch Жыл бұрын
Wow. Thanks for the feedback.
@kenturnbull9679
@kenturnbull9679 Жыл бұрын
Very useful and inspiring information. I love these "deeper dives" as they give me ideas how to solve those "can't do dat" moments;...which I seem to encounter more often than I like. If I could, I would like to give more than 1 thumbs up.
@stephanie-s4f4r
@stephanie-s4f4r Жыл бұрын
Love going through your lessons and landing on things like this in first 5 minutes that I know I will use! Thank you!
@StewartLynch
@StewartLynch Жыл бұрын
Great to hear!
@mhfs61
@mhfs61 Жыл бұрын
As always, a great video Stewart. Learn something new today. Thank you.
@santhoshVnair
@santhoshVnair Жыл бұрын
Very nice, and Swifty indeed. Thanks Steward.
@StewartLynch
@StewartLynch Жыл бұрын
Thanks for listening
@larschristiansen3136
@larschristiansen3136 Жыл бұрын
Very nice. At the end you show different ways of extending through simple extensions, modifiers and extensions encapsulating view modifiers. You state quickly that the las one is the preferred swift way. And it makes sense. However which is the best/optimum from a performance memory footprint point of view?
@santhoshVnair
@santhoshVnair Жыл бұрын
I had this question too - what performance related cautions we must consider when you use such extensions; for example - what if we put a higher order function in a view extension? So, there might be some boundaries - like do's and don's; correct? May be an idea for another video.
@StewartLynch
@StewartLynch Жыл бұрын
I asked this question myself of other more senior devs when i was developing this video and there did not seem to be any indication that performance was an issue one way or the other, but using a ViewModifier seemed to be the preferred method.
@StewartLynch
@StewartLynch Жыл бұрын
I am not sure that there are any down sides to using extensions.
@robertdavis7262
@robertdavis7262 Жыл бұрын
@@StewartLynch Great video as always. Was there any reason given for why the ViewModifier approach was considered better. As you note, the two approaches look very much the same.
@StewartLynch
@StewartLynch Жыл бұрын
I think just because that is how Apple does it.
@andresraigoza2082
@andresraigoza2082 Жыл бұрын
Thank you so much Stewart 👍🏻
@andrejkling3886
@andrejkling3886 Жыл бұрын
Thank you Stewart….
@anhhanry7167
@anhhanry7167 Жыл бұрын
do you have any video tutoring how to localize the app ?
@StewartLynch
@StewartLynch Жыл бұрын
No. Sorry
@anhhanry7167
@anhhanry7167 Жыл бұрын
@@StewartLynch well, could you consider making one , please
@StewartLynch
@StewartLynch Жыл бұрын
Never having done that myself, I am afraid that I might botch it. I think others have done ones though.
@anhhanry7167
@anhhanry7167 Жыл бұрын
@@StewartLynch you're my best tutor, I don't trust others ( most of them on Utub are from India) , Please consider,, If anyone uploading an app to apple store, then software localization is a must, Please help the community by providing a great service, pointing out a way, a right way ( just like your enumb clip)
@gakkieNL
@gakkieNL Жыл бұрын
Extensions are somewhat mandatory when using Core Data…
Styling SwiftUI Text Views
20:43
Stewart Lynch
Рет қаралды 3,2 М.
Introduction to Generics in Swift
24:13
Stewart Lynch
Рет қаралды 6 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 30 МЛН
Xcode File Headers and Macros
22:28
Stewart Lynch
Рет қаралды 1,6 М.
How to create and use extensions - Swift for Complete Beginners
12:33
🔴 Enums in Swift| Intermediate & Advanced Fundamentals
29:11
MeshGradients in iOS 18 and Xcode 15
18:08
Stewart Lynch
Рет қаралды 1,5 М.
Introduction to enums in Swift
15:22
Stewart Lynch
Рет қаралды 5 М.
Mastering SwiftLint for Code Readability
27:45
Stewart Lynch
Рет қаралды 7 М.
Maksym Husar - Dig into Value types  @ CocoaHeads Kyiv #15
57:45
CocoaHeads Ukraine
Рет қаралды 4,3 М.
Swift Generics: The Key to Reusable and Flexible Code
23:47
Swift and Tips
Рет қаралды 7 М.
How to use Generics in Swift | Advanced Learning #8
19:24
Swiftful Thinking
Рет қаралды 15 М.
iOS 18 SwiftUI ScrollView DeepDive
28:11
Stewart Lynch
Рет қаралды 2,8 М.