title case author var font: UIFont { /* */ } var textColor: UIColor { /* */ } } func setLabelTextVisual(on label: UILabel, as type: LabelType) { label.font = type.font label.textColor = type.textColor } @IBAction func resetLabelTextVisual(sender: Any) { setLabelTextVisual(on: titleLabel, as: .title) setLabelTextVisual(on: authorLabel, as: .author) } } ࣝʹԠͨ͡Γସ͑Λఆٛ ॏෳίʔυΛݮ