the size of text button in swift 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)