@@ -12,44 +12,44 @@ extension UIImage {
12
12
enum Buttons {
13
13
// Button images we expect as tightly cropped 24x24 images. The SVGs are 20x20 with a 2px border
14
14
static var account : UIImage {
15
- UIImage ( resource : . iconAccount ) . rescaled ( by: 24 / 20 )
15
+ UIImage ( named : " IconAccount " ) ! . rescaled ( by: 24 / 20 )
16
16
}
17
17
18
18
static var alert : UIImage {
19
- UIImage ( resource : . iconAlert ) . rescaled ( by: 24 / 20 )
19
+ UIImage ( named : " IconAlert " ) ! . rescaled ( by: 24 / 20 )
20
20
}
21
21
22
22
static var info : UIImage {
23
23
// the info icon was 18x18 cropped
24
- UIImage ( resource : . iconInfo ) . resizeImage ( targetSize: CGSize ( width: 21.5 , height: 21.5 ) )
24
+ UIImage ( named : " IconInfo " ) ! . resizeImage ( targetSize: CGSize ( width: 21.5 , height: 21.5 ) )
25
25
}
26
26
27
27
static var settings : UIImage {
28
- UIImage ( resource : . iconSettings ) . rescaled ( by: 24 / 20 )
28
+ UIImage ( named : " IconSettings " ) ! . rescaled ( by: 24 / 20 )
29
29
}
30
30
31
31
static var back : UIImage {
32
- UIImage ( resource : . iconBack )
32
+ UIImage ( named : " IconBack " ) !
33
33
}
34
34
35
35
static var copy : UIImage {
36
- UIImage ( resource : . iconCopy )
36
+ UIImage ( named : " IconCopy " ) !
37
37
}
38
38
39
39
static var hide : UIImage {
40
- UIImage ( resource : . iconObscure )
40
+ UIImage ( named : " IconObscure " ) !
41
41
}
42
42
43
43
static var reload : UIImage {
44
- UIImage ( resource : . iconReload )
44
+ UIImage ( named : " IconReload " ) !
45
45
}
46
46
47
47
static var rightArrow : UIImage {
48
- UIImage ( resource : . iconArrow )
48
+ UIImage ( named : " IconArrow " ) !
49
49
}
50
50
51
51
static var show : UIImage {
52
- UIImage ( resource : . iconUnobscure )
52
+ UIImage ( named : " IconUnobscure " ) !
53
53
}
54
54
55
55
// the close button, which comes we consume in two sizes, both of which come from the same asset
@@ -65,43 +65,43 @@ extension UIImage {
65
65
66
66
enum CellDecoration {
67
67
static var chevronRight : UIImage {
68
- UIImage ( resource : . iconChevron )
68
+ UIImage ( named : " IconChevron " ) !
69
69
}
70
70
71
71
static var chevronDown : UIImage {
72
- UIImage ( resource : . iconChevronDown )
72
+ UIImage ( named : " IconChevronDown " ) !
73
73
}
74
74
75
75
static var chevronUp : UIImage {
76
- UIImage ( resource : . iconChevronUp )
76
+ UIImage ( named : " IconChevronUp " ) !
77
77
}
78
78
79
79
static var externalLink : UIImage {
80
- UIImage ( resource : . iconExtlink )
80
+ UIImage ( named : " IconExtlink " ) !
81
81
}
82
82
83
83
static var tick : UIImage {
84
- UIImage ( resource : . iconTickSml )
84
+ UIImage ( named : " IconTickSml " ) !
85
85
. resizeImage ( targetSize: CGSize ( width: 16 , height: 16 ) )
86
86
}
87
87
}
88
88
89
89
enum Status {
90
- static var failure : UIImage { UIImage ( resource : . iconFail ) }
91
- static var success : UIImage { UIImage ( resource : . iconSuccess ) }
90
+ static var failure : UIImage { UIImage ( named : " IconFail " ) ! }
91
+ static var success : UIImage { UIImage ( named : " IconSuccess " ) ! }
92
92
}
93
93
94
94
// miscellaneous images
95
95
static var backTransitionMask : UIImage {
96
- UIImage ( resource : . iconBackTransitionMask )
96
+ UIImage ( named : " IconBackTransitionMask " ) !
97
97
}
98
98
99
99
static var spinner : UIImage {
100
- UIImage ( resource : . iconSpinner )
100
+ UIImage ( named : " IconSpinner " ) !
101
101
}
102
102
103
103
static var tick : UIImage {
104
- UIImage ( resource : . iconTickSml )
104
+ UIImage ( named : " IconTickSml " ) !
105
105
. resizeImage ( targetSize: CGSize ( width: 24 , height: 24 ) )
106
106
}
107
107
0 commit comments