@@ -17,7 +17,7 @@ str.toUnicodeArray()[0].toChar() // "H"
1717
1818str.toUnicodeArray ().toString () // "Hello, playground"
1919
20- str.length () // 17 (changing in update)
20+ str.length // 17 :: .length() in v0.0.1
2121
2222var int: Int = 0
2323
@@ -54,6 +54,50 @@ Array2D(columns: Int, rows: Int)
5454Array2D.subscript (column : Int , row : Int ) -> Int
5555Array2D.columnCount ()
5656Array2D.rowCount ()
57+
58+ /// App Utils
59+ AppDisplayName () -> String ?
60+ AppVersion () -> String ?
61+ AppBuildNumber () -> String ?
62+ AppBuildVersion () -> String ?
63+ DeviceVersion () -> String ?
64+ DetectScreenshot (completion : ()-> ())
65+ IsDebug () -> Bool
66+ IsRelease () -> Bool
67+ IsSimulator () -> Bool
68+ IsDevice () -> Bool
69+
70+ /// Device Feedback Utils
71+ vibrate ()
72+
73+ // NSBundle Extensions
74+ .loadNib (name : String , owner : AnyObject ! )
75+ .loadNib < T> (name : String ) -> T?
76+
77+ /// UIAlertController Extensions
78+ .show () // Use RootViewController() to display alert
79+ .showWithCompletion (completion : () -> Void ) // Use RootViewController() to display alert with completion
80+ alert.showWithCompletion () {
81+
82+ // do something on completion
83+
84+ }
85+ .setVisible // On set true it shows using RootViewController()
86+
87+ /// UIAlert Utils
88+ showErrorAlert (description : String , error : NSError? , sender : UIViewController)
89+ showErrorAlertUsingRoot (description : String , error : NSError? )
90+
91+ /// View Controller Utils
92+ RootViewController () -> UIViewController? // Returns RootViewController in keyWindow
93+ ScreenOrientation () -> UIInterfaceOrientation
94+ HorizontalSizeClass () -> UIUserInterfaceSizeClass
95+ VerticalSizeClass () -> UIUserInterfaceSizeClass
96+ ScreenWidth () -> CGFloat
97+ ScreenHeight () -> CGFloat
98+ ScreenBounds () -> CGRect
99+ StatusBarHeight () -> CGFloat
100+ ScreenHeightMinusStatusBar () -> CGFloat
57101```
58102
59103##CocoaPods
@@ -73,7 +117,7 @@ source 'https://github.com/CocoaPods/Specs.git'
73117platform :ios , ' 8.0'
74118use_frameworks!
75119
76- pod ' Extensions' , ' ~> 0.0. 1'
120+ pod ' Extensions' , ' ~> 0.1'
77121```
78122
79123Then, run the following command:
0 commit comments