Monthly Archive: Kasım 2018

x-code swift button a gradient verme 0

x-code swift button a gradient verme

class ViewController: UIViewController { @IBOutlet weak var button: UIButton! override func viewDidLoad() { super.viewDidLoad() let background = CAGradientLayer().backgroundGradientColor() background.frame = self.button.bounds self.button.layer.insertSublayer(background, at: 0) } } extension CAGradientLayer { func backgroundGradientColor() -> CAGradientLayer {...