Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let UIFontTextStyleHeadline = "UIFontTextStyleHeadline"
- let UIFontTextStyleBody = "UIFontTextStyleBody"
- let UIFontTextStyleFootnote = "UIFontTextStyleFootnote"
- enum Text {
- case headline
- case body
- case footnote
- var style: String {
- switch self {
- case .headline: return UIFontTextStyleHeadline
- case .body: return UIFontTextStyleBody
- case .footnote: return UIFontTextStyleFootnote
- }
- }
- }
Add Comment
Please, Sign In to add comment