@@ -31,7 +31,7 @@ final class BTConfiguration {
31
31
var cellTextLabelColor : UIColor ?
32
32
var selectedCellTextLabelColor : UIColor ?
33
33
var cellTextLabelFont : UIFont !
34
- var navigationBarTitleFont : UIFont !
34
+ var navigationBarTitleFont : UIFont
35
35
var cellTextLabelAlignment : NSTextAlignment !
36
36
var cellSelectionColor : UIColor ?
37
37
var checkMarkImage : UIImage !
@@ -45,27 +45,23 @@ final class BTConfiguration {
45
45
var shouldChangeTitleText : Bool !
46
46
47
47
init ( ) {
48
- self . defaultValue ( )
49
- }
50
-
51
- func defaultValue( ) {
52
48
// Path for image
53
49
let bundle = Bundle ( for: BTConfiguration . self)
54
50
let url = bundle. url ( forResource: " BTNavigationDropdownMenu " , withExtension: " bundle " )
55
51
let imageBundle = Bundle ( url: url!)
56
52
let checkMarkImagePath = imageBundle? . path ( forResource: " checkmark_icon " , ofType: " png " )
57
53
let arrowImagePath = imageBundle? . path ( forResource: " arrow_down_icon " , ofType: " png " )
58
-
59
- // Default values
54
+
55
+ // Set default values
60
56
self . menuTitleColor = UIColor . darkGray
61
57
self . cellHeight = 50
62
58
self . cellBackgroundColor = UIColor . white
63
59
self . arrowTintColor = UIColor . white
64
60
self . cellSeparatorColor = UIColor . darkGray
65
61
self . cellTextLabelColor = UIColor . darkGray
66
62
self . selectedCellTextLabelColor = UIColor . darkGray
67
- self . cellTextLabelFont = UIFont ( name : " HelveticaNeue-Bold " , size : 17 )
68
- self . navigationBarTitleFont = UIFont ( name : " HelveticaNeue-Bold " , size : 17 )
63
+ self . cellTextLabelFont = UIFont . systemFont ( ofSize : 17 , weight : . bold )
64
+ self . navigationBarTitleFont = UIFont . systemFont ( ofSize : 17 , weight : . bold )
69
65
self . cellTextLabelAlignment = NSTextAlignment . left
70
66
self . cellSelectionColor = UIColor . lightGray
71
67
self . checkMarkImage = UIImage ( contentsOfFile: checkMarkImagePath!)
0 commit comments