@@ -44,39 +44,45 @@ fileprivate class MainSection: TableViewSection {
44
44
45
45
init ( ) {
46
46
super. init ( )
47
- cells. append ( MenuCell ( label: " Alamofire " , icon: UIImage ( named: " menu/github " ) ) {
48
- UIApplication . shared. open ( URL ( string: " https://github.com/Alamofire/Alamofire " ) !)
49
- } )
50
- cells. append ( MenuCell ( label: " ActiveLabel " , icon: UIImage ( named: " menu/github " ) ) {
51
- UIApplication . shared. open ( URL ( string: " https://github.com/optonaut/ActiveLabel.swift " ) !)
52
- } )
53
- cells. append ( MenuCell ( label: " BarMagnet " , icon: UIImage ( named: " menu/github " ) ) {
54
- UIApplication . shared. open ( URL ( string: " https://github.com/Qata/BarMagnet " ) !)
55
- } )
56
- cells. append ( MenuCell ( label: " Eureka " , icon: UIImage ( named: " menu/github " ) ) {
57
- UIApplication . shared. open ( URL ( string: " https://github.com/xmartlabs/Eureka " ) !)
58
- } )
59
- cells. append ( MenuCell ( label: " ExpandableCollectionViewKit " , icon: UIImage ( named: " menu/github " ) ) {
60
- UIApplication . shared. open ( URL ( string: " https://github.com/jVirus/expandable-collection-view-kit " ) !)
61
- } )
62
- cells. append ( MenuCell ( label: " Houston " , icon: UIImage ( named: " menu/github " ) ) {
63
- UIApplication . shared. open ( URL ( string: " https://github.com/RudyB/Houston " ) !)
64
- } )
65
- cells. append ( MenuCell ( label: " IQKeyboardManager " , icon: UIImage ( named: " menu/github " ) ) {
66
- UIApplication . shared. open ( URL ( string: " https://github.com/hackiftekhar/IQKeyboardManager " ) !)
67
- } )
68
- cells. append ( MenuCell ( label: " MBProgressHUD " , icon: UIImage ( named: " menu/github " ) ) {
69
- UIApplication . shared. open ( URL ( string: " https://github.com/jdg/MBProgressHUD " ) !)
70
- } )
71
- cells. append ( MenuCell ( label: " NotificationBanner " , icon: UIImage ( named: " menu/github " ) ) {
72
- UIApplication . shared. open ( URL ( string: " https://github.com/Daltron/NotificationBanner " ) !)
73
- } )
74
- cells. append ( MenuCell ( label: " PromiseKit " , icon: UIImage ( named: " menu/github " ) ) {
75
- UIApplication . shared. open ( URL ( string: " https://github.com/mxcl/PromiseKit " ) !)
76
- } )
77
- cells. append ( MenuCell ( label: " Valet " , icon: UIImage ( named: " menu/github " ) ) {
78
- UIApplication . shared. open ( URL ( string: " https://github.com/square/Valet " ) !)
79
- } )
47
+
48
+ cells = [
49
+ MenuCell ( label: " Alamofire " , icon: UIImage ( named: " menu/github " ) )
50
+ { UIApplication . shared. open ( URL ( string: " https://github.com/Alamofire/Alamofire " ) !) } ,
51
+
52
+ MenuCell ( label: " ActiveLabel " , icon: UIImage ( named: " menu/github " ) )
53
+ { UIApplication . shared. open ( URL ( string: " https://github.com/optonaut/ActiveLabel.swift " ) !) } ,
54
+
55
+ MenuCell ( label: " BarMagnet " , icon: UIImage ( named: " menu/github " ) )
56
+ { UIApplication . shared. open ( URL ( string: " https://github.com/Qata/BarMagnet " ) !) } ,
57
+
58
+ MenuCell ( label: " Eureka " , icon: UIImage ( named: " menu/github " ) )
59
+ { UIApplication . shared. open ( URL ( string: " https://github.com/xmartlabs/Eureka " ) !) } ,
60
+
61
+ MenuCell ( label: " ExpandableCollectionViewKit " , icon: UIImage ( named: " menu/github " ) )
62
+ { UIApplication . shared. open ( URL ( string: " https://github.com/jVirus/expandable-collection-view-kit " ) !) } ,
63
+
64
+ MenuCell ( label: " Houston " , icon: UIImage ( named: " menu/github " ) )
65
+ { UIApplication . shared. open ( URL ( string: " https://github.com/RudyB/Houston " ) !) } ,
66
+
67
+ MenuCell ( label: " IQKeyboardManager " , icon: UIImage ( named: " menu/github " ) )
68
+ { UIApplication . shared. open ( URL ( string: " https://github.com/hackiftekhar/IQKeyboardManager " ) !) } ,
69
+
70
+ MenuCell ( label: " MBProgressHUD " , icon: UIImage ( named: " menu/github " ) )
71
+ { UIApplication . shared. open ( URL ( string: " https://github.com/jdg/MBProgressHUD " ) !) } ,
72
+
73
+ MenuCell ( label: " NotificationBanner " , icon: UIImage ( named: " menu/github " ) )
74
+ { UIApplication . shared. open ( URL ( string: " https://github.com/Daltron/NotificationBanner " ) !) } ,
75
+
76
+ MenuCell ( label: " PromiseKit " , icon: UIImage ( named: " menu/github " ) )
77
+ { UIApplication . shared. open ( URL ( string: " https://github.com/mxcl/PromiseKit " ) !) } ,
78
+
79
+ MenuCell ( label: " SwipeableTabBarController " , icon: UIImage ( named: " menu/github " ) )
80
+ { UIApplication . shared. open ( URL ( string: " https://github.com/marcosgriselli/SwipeableTabBarController " ) !) } ,
81
+
82
+ MenuCell ( label: " Valet " , icon: UIImage ( named: " menu/github " ) )
83
+ { UIApplication . shared. open ( URL ( string: " https://github.com/square/Valet " ) !) }
84
+
85
+ ] . sorted { $0. label < $1. label}
80
86
}
81
87
82
88
override func didSelectRow( in tableView: UITableView , at indexPath: IndexPath ) {
0 commit comments