Skip to content

Commit bffc53d

Browse files
Update README.md
1 parent e852258 commit bffc53d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/DeviceIdentificator.svg)](https://img.shields.io/cocoapods/v/DeviceIdentificator.svg)
44
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
5-
[![Platform](https://img.shields.io/cocoapods/p/DeviceIdentificator.svg?style=flat)](http://cocoadocs.org/docsets/DeviceIdentificator)
5+
![Platform](https://img.shields.io/badge/platform-iOS-blue.svg?style=flat)
6+
![Platform](https://img.shields.io/badge/platform-tvOS-blue.svg?style=flat)
67
[![Build Status](https://travis-ci.org/sebastianvarela/DeviceIdentificator.svg?branch=master)](https://travis-ci.org/sebastianvarela/DeviceIdentificator) [![codecov](https://codecov.io/gh/sebastianvarela/DeviceIdentificator/branch/master/graph/badge.svg)](https://codecov.io/gh/sebastianvarela/DeviceIdentificator) [![codebeat badge](https://codebeat.co/badges/0230786d-680e-4d4b-bcb0-bacc6693571f)](https://codebeat.co/projects/github-com-sebastianvarela-deviceidentificator-master)
78

89

910
## Introduction
1011
UIDevice extension to fetch current device info such commercial name (iPhone X instead of iPhone10,3).
1112

13+
## Platforms
14+
Support for iOS and tvOS
15+
1216
## Installation
1317
This framework is compatible with Carthage or Cocoapods, use one of both.
1418
### Carthage
@@ -29,6 +33,7 @@ let deviceModel = UIDevice.current.deviceModel
2933
print("Current device: \(deviceModel.name)")
3034

3135
let isIpad = UIDevice.current.isIpad
36+
let isSimulator = UIDevice.current.isSimulator
3237
```
3338

3439
Objective-C:
@@ -37,4 +42,5 @@ NSString *deviceModelName = [UIDevice currentDevice].deviceModelName;
3742
NSLog(@"Current device: %@", [UIDevice currentDevice].deviceModelName);
3843

3944
BOOL isIpad = [UIDevice currentDevice].isIpad;
45+
BOOL isSimulator = [UIDevice currentDevice].isSimulator;
4046
```

0 commit comments

Comments
 (0)