UIButton Styling with Functions #86
Unanswered
AndreiVidrasco
asked this question in
Q&A
Replies: 1 comment
-
Hi @AndreiVidrasco! Thanks for watching! Instead of subclassing, you could write a styling function that introduces a new object to hold the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I enjoyed a lot episode #3 about uikit styling and wanted to introduce this concept in my codebase. While trying to convert from inheritance to functions, I stumbled to one use case.
To convert styling is easy (basically everywhere where it's used ActionButton, changing to UIButton and apply specified style), but I couldn't think of a nice solution which will allow me with one function to enable haptic feedback on pressing button
Do you have any ideas how this could be implemented in a functional way?
Beta Was this translation helpful? Give feedback.
All reactions