We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72563ea commit c60f2a9Copy full SHA for c60f2a9
1 file changed
README.md
@@ -6,3 +6,31 @@
6
7
## Introduction
8
UIDevice extension to fetch current device info such commercial name (iPhone X instead of iPhone10,3).
9
+
10
+## Installation
11
12
+This framework is compatible with Carthage or Cocoapods, use one of both.
13
14
+### Carthage: Add this into your `Cartfile`
15
+```ogdl
16
+github "sebastianvarela/iOS-Alert-Controller"
17
+```
18
19
+### Cocoapods: Add this into your `Podfile`
20
21
+pod 'DeviceIdentificator'
22
23
24
+## Usage:
25
26
+```Swift
27
+let deviceModel = UIDevice.current.deviceModel
28
+print("Current device: \(deviceModel.name)")
29
30
+let isIpad = UIDevice.current.isIpad
31
32
33
+```Objective-C
34
+NSString *deviceModelName = [UIDevice currentDevice].deviceModelName
35
+NSLog("Current device: %@", deviceModelName)
36
0 commit comments