This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct FontWeight { | |
| static let ultraLight: CGFloat = UIFontWeightUltraLight | |
| static let thin: CGFloat = UIFontWeightThin | |
| static let light: CGFloat = UIFontWeightLight | |
| static let regular: CGFloat = UIFontWeightRegular | |
| static let medium: CGFloat = UIFontWeightMedium | |
| static let semiBold: CGFloat = UIFontWeightSemibold | |
| static let bold: CGFloat = UIFontWeightBold | |
| static let heavy: CGFloat = UIFontWeightHeavy | |
| static let black: CGFloat = UIFontWeightBlack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum NotificationCenterKey : String { | |
| case screaming, yelling, hollering | |
| } | |
| extension NotificationCenter { | |
| static func post(notification : NotificationCenterKey){ | |
| NotificationCenter.default.post(name: Notification.Name(rawValue: notification.rawValue), object: nil) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Snack { | |
| var name : String | |
| var calories : Int | |
| var flavor : Flavor | |
| enum Flavor { | |
| case sour, sweet, spicy, bitter | |
| } | |