Skip to content

Commit 10ae50b

Browse files
committed
Update README.md
1 parent 1cd7bb2 commit 10ae50b

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ str.toUnicodeArray()[0].toChar() // "H"
1717

1818
str.toUnicodeArray().toString() // "Hello, playground"
1919

20-
str.length() // 17 (changing in update)
20+
str.length // 17 :: .length() in v0.0.1
2121

2222
var int: Int = 0
2323

@@ -54,6 +54,50 @@ Array2D(columns: Int, rows: Int)
5454
Array2D.subscript(column: Int, row: Int) -> Int
5555
Array2D.columnCount()
5656
Array2D.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'
73117
platform :ios, '8.0'
74118
use_frameworks!
75119

76-
pod 'Extensions', '~> 0.0.1'
120+
pod 'Extensions', '~> 0.1'
77121
```
78122

79123
Then, run the following command:

0 commit comments

Comments
 (0)