Use FontAwesomeKit.Swift with UILabel.

Use FontAwesomeKit.Swift with UIButton.

let button = UIButton(type: .custom)
button.fa_setTitle(.fa_gift, for: .normal)
/// type : The fontAwesome type, and you don’t need to ‘setImage’ or ‘setBackgroundImage’
/// state : The state that uses the specified title. The possible values are described in UIControlState.
button.titleLabel?.fa_font = UIFont(fa_fontSize: 50)