Closed ogezue closed 6 years ago
Yes, you can customize the button to appear like this.
-Paolo
How do you do it? Would appreciate it if you can point me in the right direction?
How do you do it? Would appreciate it if you can point me in the right direction?
Help with the same! haha
I try with a image of the button and this configuration
okAction.setImage(image, for: .normal)
okAction.imageEdgeInsets = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: -50)
okAction.titleEdgeInsets = UIEdgeInsets(top: 0, left: -200, bottom: 0, right: 0)
I don't know if is the best approach but i try to set the image as background and i can't make look right, it's getting to big and very stretched
okAction.setBackgroundImage(image, for: .normal)
And I tried with gradient too but nothing happend , only the textButton display :(
I really appreciate some help here!. Thk in advance ;)
Is it possible to add custom buttons like this?