how to change the font of buttons programmatically swift

Swift
myButton.titleLabel?.font =  UIFont(name: YourfontName, size: 20)
Source

Also in Swift: