Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func setButtonStyle(_ button: UIButton, subject: String) {
- button.backgroundColor = UIColor.lightGray
- button.setTitle(subject, for: .normal)
- button.setTitleColor(UIColor.white, for: .normal)
- button.layer.cornerRadius = 3
- button.titleLabel?.sizeToFit()
- button.sizeToFit()
- button.frame.size = CGSize(width: 5, height: 20)
- }
Add Comment
Please, Sign In to add comment