SwiftUI: Custom Button using ButtonStyle

preview_player
Показать описание
In this video, we'll go through how to create different kind of buttons and how can we modify them. In addition, we will dive into how to implement our own ButtonStyle to reuse the style throughout our codebase!

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

This is super useful and easy to follow. Thank you

nofx
Автор

Thanks for the great tutorial! helped me a lot!

iamichelly
Автор

Hey Vasil, thanks for your tutorial. So bad it is not working already.
Since the StaticMember was deprecated how the buttonstyle struct should look and work now?
I’m polishing the app and want to combine the buttons styles and add pressed effects for every interaction in an easy way.
Thanks.

ilchebee
Автор

Beta 5, StaticMember is deprecated. It says " Use concrete 'Base' types directly instead." 
But I'd like to use same custom button-style struct everywhere. Creating like a CustomButtoneStyle() again and again isn't right feeling for me. Any idea ? it's just only beta 5 situation ?

coffeetoast
Автор

Finally one is doing lessons Custom for SwiftUI,
We wish more lessons in Custom,
Thank you Vasil and wait for more from you

alialnaghmoush
Автор

How to log the button tag / title on the button action? How to access the button(self) inside the action?

hemaks
Автор

Great video Vasil, especially creating the different button styles, What if you want to use a custom image for the button ? I could not be able to render another image that is not a systemName.

javivl
Автор

Will be great if you allow to download the code

froylanalmeida
visit shbcf.ru