@@ -11,21 +11,25 @@ import UIKit
1111
1212struct UI {
1313
14- static let padding = UIEdgeInsets ( top: 25 , left: 25 , bottom: 25 , right: 25 )
14+ static let padding = UIEdgeInsets ( top: 15 , left: 25 , bottom: 25 , right: 25 )
1515
1616 struct StackView {
1717
1818 static let spacing = CGFloat ( 5 )
1919 static let spacer = CGFloat ( 20 )
2020 }
21- }
22-
23-
24- extension UIColor {
2521
26- static let background = UIColor ( named: " Background " ) ?? UIColor . clear
27- static let label = UIColor ( named: " Label " ) ?? UIColor . clear
28- static let mars = UIColor ( named: " Mars " ) ?? UIColor . clear
22+ struct Color {
23+
24+ static let background = UIColor ( named: " Background " ) ?? UIColor . clear
25+ static let label = UIColor ( named: " Label " ) ?? UIColor . clear
26+ static let mars = UIColor ( named: " Mars " ) ?? UIColor . clear
27+ }
28+
29+ struct Asset {
30+
31+ static let mars = UIImage ( named: " Mars " )
32+ }
2933}
3034
3135
@@ -34,18 +38,17 @@ extension UILabel {
3438 var withHeroStyle : Self {
3539 self
3640 . with {
37- $0. textColor = . label
41+ $0. textColor = UI . Color . label
3842 $0. font = UIFont ( name: " HelveticaNeue-CondensedBlack " , size: 100 )
3943 $0. lineHeight = 80
4044 $0. letterSpacing = 100 * - 0.02
41- $0. showGrid = true
4245 }
4346 }
4447
4548 var withSubtitleStyle : Self {
4649 self
4750 . with {
48- $0. textColor = . label
51+ $0. textColor = UI . Color . label
4952 $0. font = UIFont ( name: " HelveticaNeue " , size: 20 )
5053 $0. adjustsFontSizeToFitWidth = false
5154 $0. lineHeight = 30
@@ -56,7 +59,7 @@ extension UILabel {
5659 var withIntroStyle : Self {
5760 self
5861 . with {
59- $0. textColor = . label
62+ $0. textColor = UI . Color . label
6063 $0. font = UIFont ( name: " HelveticaNeue-Medium " , size: 12 )
6164 $0. numberOfLines = 0
6265 $0. lineHeight = 20
@@ -67,7 +70,7 @@ extension UILabel {
6770 var withTitleStyle : Self {
6871 self
6972 . with {
70- $0. textColor = . label
73+ $0. textColor = UI . Color . label
7174 $0. font = UIFont ( name: " HelveticaNeue-Medium " , size: 21 )
7275 $0. numberOfLines = 0
7376 $0. lineHeight = 30
@@ -79,7 +82,7 @@ extension UILabel {
7982 var withParagraphStyle : Self {
8083 self
8184 . with {
82- $0. textColor = UIColor . label. withAlphaComponent ( 0.5 )
85+ $0. textColor = UI . Color . label. withAlphaComponent ( 0.5 )
8386 $0. font = UIFont ( name: " HelveticaNeue-Medium " , size: 13 )
8487 $0. numberOfLines = 0
8588 $0. lineHeight = 20
0 commit comments