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.
@VasilNunev5 жыл бұрын
Hey Ilya. I know, SwiftUI’s API changed every week. Since we dont have StaticMember anymore you can just call ‘.modifier(YourButtonModifier())’. Doesn’t look as elegant as the StaticMember but still does the job!
@nofx7144 жыл бұрын
This is super useful and easy to follow. Thank you
@iamichelly2 жыл бұрын
Thanks for the great tutorial! helped me a lot!
@alialnaghmoush5 жыл бұрын
Finally one is doing lessons Custom for SwiftUI, We wish more lessons in Custom, Thank you Vasil and wait for more from you
@VasilNunev5 жыл бұрын
Thanks!!! Please let me know what more you would like me to show you how to do. Its easier getting request from the viewers rather than me trying to figure out what you folks want to see 😅
@alialnaghmoush5 жыл бұрын
@@VasilNunev Custom List Such as removing the divider, changing the color of the row, And also how the make of color dynamic programmatically
@alialnaghmoush5 жыл бұрын
@@VasilNunev in the documentation (View) -> (Setting the Foreground or Background of a View) See how these functions work, I think we can change the background without complexity but I did not know how it works
@pitmanra5 жыл бұрын
@@VasilNunev More animation would be great. Thank you.
@javivl115 жыл бұрын
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.
@VasilNunev5 жыл бұрын
Hey Javier. Are you on Beta 3? I am able to render a custom image from my Assets Catalog just by calling Image("name-of-my-image")
@coffeetoast5 жыл бұрын
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 ?
@VasilNunev5 жыл бұрын
Hi, on Beta 5 they removed the StaticMember unfortunately, leading us to create new structs everytime we want to use that modifier. Nobody is happy about it but for now we have to live with it and hope they come to a solution about it soon
@Nunny253 жыл бұрын
Thanks, nice tutorial..
@hemaks48544 жыл бұрын
How to log the button tag / title on the button action? How to access the button(self) inside the action?