Reputation: 528
I have now learned to add core graphics as subviews. Looks gorgeous and 2x independent. I haven't found a tutorial on Core Graphics Button with action for Swift. First thing that came in mind is that I simply draw graphics and then make transparent buttons on top of them, but I am sure it is not the correct way and I want to change some button design properties based on events, like ifpressed ifloggedin etc.
What would be the standard or best practice on doing custom core graphics as buttons in Swift. Any code examples welcome. Thank you!
Upvotes: 0
Views: 329