StyleDefinition = (size: CGFloat, color: UIColor, weight: UIFont.Weight, lineSpacing: CGFloat) private var definition: StyleDefinition { switch self { case .Header: return (size: 19.0, color: EightColor.white, weight: .semibold, lineSpacing: 4.0) case .Body: return (size: 15.0, color: EightColor.veryDarkGray, weight: .regular, lineSpacing: 3.0) } } var size: CGFloat { return definition.size } var weight: UIFont.Weight { return definition.weight } var font: UIFont { return UIFont.systemFont(ofSize: size, weight: weight) } ɾɾɾ }