Use NSButton
when AppKit, or UIButton
when UIKit:
override func viewDidLoad() {
super.viewDidLoad()
let button = NSButton()
button.title = "My Button"
self.view.addSubview(button)
button.frame = CGRect(x: 0, y: 0, width: 100, height: 30)
}