Developing Custom Modifiers in SwiftUI

preview_player
Показать описание
Hello everyone, Today we will explore one of the most important features of SwiftUI, modifiers. They help us to compose our views really easily, but Do you know how to build your own modifiers and what about the performance? Let's dive in! 😉

Content:
0:00 - Intro
0:26 - What is a modifier?
0:59 - The order matters
2:35 - Building my own modifier
6:55 - Are modifiers costly?
9:34 - Do you want to learn more?

------

Source code showed in the video:

------
Resources:

------
Other videos in the channel:

-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:

Finally, ask me for a video you would like to see next 😄!

Credits:
- Video edited with LumaFusion
Рекомендации по теме
Комментарии
Автор

Loving your content mate, Really helpful and much deeper and better than many others on youtube.

nomanharoon
Автор

great video, the extra mile with swiftui view branches problem was very good!

chestermang
Автор

I love your content, very helpful ! Thank you, and please keep continue

AchrafTrabelsiMobileDeveloper
Автор

Excellent lesson Pedro... Thank you. Can you create more lessons about Generic in real project please?

Mahadev-xu
Автор

Thank you for straight forward explanations videos👍🏻, but what about animating the change of the modifier?

waleedware
Автор

This is so useful. Question, and maybe an idea for another video. I'm working on a project where the data model has an property named Content. I was trying to add a custom modifier, but it doesn't work due to the conflicting name in the model:
Is there a way around it without having to rename the data properly?

ColeDano
visit shbcf.ru