How to create custom ViewModifiers in SwiftUI | Advanced Learning #1

preview_player
Показать описание
We're going to start off the series with one of the easier videos and learn how to create custom ViewModifiers! These are extremely useful in production apps because they make it extremely easy to create and reuse modifiers for specific views. If you want to be able to reusable a specific look or feel for any object, creating a custom ViewModifer is a great solution.

🤙 WELCOME BACK 🤙

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

I haven't seen anyone explaining ViewModifiers in such depth
Kudos :)

MuhammadAhmed-jmnj
Автор

I greatly appreciate how you build up to the extension and include self in the extension func for explanation before simplifying it. Helps understand what the language itself is doing so much more than if you just imediantely went to the final code

jordancalhouncom
Автор

I am learning swiftUI by watching your all bootcamps, Every single video is very very useful👍, Thanks for covering all points.

RoshniParekh-hx
Автор

Great start here! You also always pick the perfect music for your videos. Thanks!

KimbrellBrad
Автор

Thank you for covering this. Even if I’ve used them before, I like your style and always learn something new.

AZMerf
Автор

Glad you're back Nick. Good start to a new series!

sols.
Автор

This is so helpful! I've seen tutorials on creating Custom TextField Styles using much harder codes, but instead I could have just used this! I also am able to create the same modifier for TextEditor where the TextField Styles don't apply. I am so happy I came across your channel from a random recommendation online =] Liked and Subbed!

penyt
Автор

I am new to programming, especially with swift, but this was a very interesting and helpful topic as it better explains what swiftUI is going. I don’t think the topic was covered quite this deep, but this video plus the one covering view builders helped me understand a lot of what swiftUI is doing for us in the background.

For instance, all modifiers are just functions that take in some parameter and return said modified view. And for the viewbuider video, I can now better grasp why so much of SwiftUI containers that hold views are just view builders.

I’m not sure if that’s a perfect way to describe these concepts, but that’s sort of what I took away from them.

Kdb
Автор

Amazing feature, super simple and reusable. Will definitely use it in my apps.

Krafcik
Автор

Great video, thank you. I moved the ViewModifier struct to its own Swift file - works like a charm and shortens the View code.

brucknerdevilliers
Автор

Hi Nick, you are awesome, Your teaching is amazing

indomitabletr
Автор

It may simple but it sure is powerful!

ConfidentlyRong-joyt
Автор

I have been waiting for this video... thanks boss

softcoder
Автор

Hello Dear Nick Sir, please make your SwiftUI Videos 4K resolution. They are more pleasing to the eyes in the 4K displays. Besides, your contents are really helpful and so are your courses. Thank You

shahbokhari
Автор

Although I already know how to create custom View modifiers. Still, I'm very eager to see how you presenting this

sumeshvs
Автор

modifier its inside group Extension ? or have specific name folder ? please answer my question 🫡

minimaster.
Автор

I assume you can just skip creating the func version and just go with the extension alone (e.g. move the modifiers form the function into the extension).

HolographicKode
Автор

Man you're a Legend, I want to ask can you do a complete Complex App like Uber . thanks for your effort

emadisaac
Автор

I liked the video but I find this example (of a button) would be better implemented as a custom view...

tokero
Автор

Hi Nick, I'm an avid follower of viewing your SwiftUI tutorials. I'm a beginner and I'm moving on to watching your tutorials for me to learn as much as I could. When you have the chance, could you make one tutorial of a Mask ViewModifier wherein hundreds of small pieces of Rectangle-shapes acting as masks to dissolve any Image or Shapes? Thank you very much for your time and to all your video tutorials!

ABNERJUDE
join shbcf.ru