ui button font swift size code example
Example: how to change the font of buttons programmatically swift
myButton.titleLabel?.font = UIFont(name: YourfontName, size: 20)
myButton.titleLabel?.font = UIFont(name: YourfontName, size: 20)