pmusolino / PMSuperButton

🔥 PMSuperButton is a powerful UIButton coming from the countryside, but with super powers! 😎

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not able to do button programmatically

JorgeAntonio512 opened this issue · comments

` let myFirstButton = PMSuperButton.self

    myFirstButton.setTitle("✸", for: .normal)
        myFirstButton.setTitleColor(.blue, for: .normal)
        myFirstButton.frame = CGRect(x: 15, y: -50, width: 300, height: 500)
        myFirstButton.addTarget(self, action: #selector(pressed), for: .touchUpInside)

`

Here's my code, it's probably pretty nubby. Just trying to find a way to programmtically add the button and edit it with your creation.