I have a group of 4 buttons and I want the currently selected button to disable the other 3(while performing an alpha fade animation)
What would be the best practise for handling this in Swift?
I have a group of 4 buttons and I want the currently selected button to disable the other 3(while performing an alpha fade animation)
What would be the best practise for handling this in Swift?
My personal opinion, connect them all to an Outlet Collection (Array) and link them all to the same function with different tags. And loop on them all each time you click on a button to decide which to disable and which to enable.