xcode swift add a border to button code example
Example: add buton border swift
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor