Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Maccharoli authored Dec 20, 2017
1 parent 2c628b1 commit b72d13a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ UIDevice extensions that fill in the missing pieces.
[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)

# Intro
# Whats this library about?
`UIDeviceComplete` is an iOS library intended to be a collection of extensions to `UIDevice`
that provide functionality that `UIDevice` currently lacks like determining which iOS device
you have (i.e iPhone SE, iPad Pro, iPhone7 etc) or determining the screen size of the device
you have (i.e iPhone X, iPhone 8, iPhone SE, iPad Pro, iPhone7 etc) or determining the screen size of the device
in inches.

# Features
Expand Down Expand Up @@ -42,6 +42,8 @@ UIdevice.current.dc.commonDeviceName // iPad Pro (12.9 inch, Wi-Fi+LTE)
let device = UIdevice.current.dc.deviceModel

switch device {
case .iPhoneX:
print("So hows that iPhone X notch thing working out? Right...")
case .iPhone6Plus, .iPhone7Plus:
print("Lots of screen realestate eh?")
case .iPhoneSE, .iPhone5, iPhone5S:
Expand Down

0 comments on commit b72d13a

Please sign in to comment.