Advertisement
Don_Mag

Untitled

May 28th, 2023
1,405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.22 KB | None | 0 0
  1. // IBDesignable button
  2.  
  3. @IBDesignable
  4. class MyButton: UIButton {
  5.    
  6.     override func setTitle(_ title: String?, for state: UIControl.State) {
  7.         let t = "++ \(title ?? "") ++"
  8.         super.setTitle(t, for: state)
  9.     }
  10.    
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement