계정이 없으신가요? 버튼
func attributedButton(_ firstPart: String, _ secondPart: String) -> UIButton {
let button = UIButton(type: .system)
let attributedTitle =
NSMutableAttributedString(string: firstPart, attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white ])
attributedTitle
.append(NSMutableAttributedString(string: secondPart, attributes: [NSAttributedString.Key.font: UIFont.boldSystemFont(ofSize: 16), NSAttributedString.Key.foregroundColor: UIColor.white ]))
button.setAttributedTitle(attributedTitle, for: .normal)
return button
}