File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1011UIDevice 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
1317This framework is compatible with Carthage or Cocoapods, use one of both.
1418### Carthage
@@ -29,6 +33,7 @@ let deviceModel = UIDevice.current.deviceModel
2933print (" Current device: \( deviceModel.name ) " )
3034
3135let isIpad = UIDevice.current .isIpad
36+ let isSimulator = UIDevice.current .isSimulator
3237```
3338
3439Objective-C:
@@ -37,4 +42,5 @@ NSString *deviceModelName = [UIDevice currentDevice].deviceModelName;
3742NSLog (@" Current device: %@ " , [UIDevice currentDevice ].deviceModelName);
3843
3944BOOL isIpad = [UIDevice currentDevice ].isIpad;
45+ BOOL isSimulator = [UIDevice currentDevice ].isSimulator;
4046```
You can’t perform that action at this time.
0 commit comments