Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
UIDevice-DisplayName
displayName()
Returns a friendly name for an iOS device, leaving out the specific type information (i.e. "iPhone X")
displayName(includeType: true)
Returns a friendly name for an iOS device, which also includes the device type (i.e. "iPhone X (GSM)")
License
UIDevice-DisplayName is available under the MIT license. See the LICENSE file for more info.
Usage
NSLog("Device Display Name: %@", UIDevice.current.displayName())
NSLog("Device Display Name With Type: %@", UIDevice.current.displayName(includeType: true))
Github
link |
Stars: 18 |
You may find interesting
Releases
4.3.0 - 2021-01-07T14:45:25
Added support for Swift Package Manager
4.2.0 - 2021-01-04T23:12:42
4.1.5 - 2020-12-07T20:44:19
4.1.4 - 2020-12-07T16:36:58
4.1.3 - 2020-09-25T16:09:33
4.1.2 - 2020-06-01T15:43:36
4.1.1 - 2019-09-04T17:51:34
4.1.0 - 2019-09-04T17:39:23
4.0.0 - 2018-04-10T15:30:29
Dynamically update devices list with JSON
3.3.0 - 2017-09-18T22:06:06
3.2.0 - 2017-06-27T18:00:40
3.1.0 - 2017-03-30T04:27:46
2.1.0 - 2016-09-23T17:52:11
Added latest Apple Watches Supports Swift 2.3
3.0.0 - 2016-09-23T17:44:04
- Updated for Swift 3.0
- Added latest Apple Watches
2.0.1 - 2016-09-09T18:11:19
Added iPhone 7 and 7 Plus devices
2.0 - 2016-08-04T22:17:47
- Added latest iPad devices
- Added Apple TV
- Added Apple Watch
1.4 - 2015-11-17T19:56:14
1.3 - 2015-09-24T16:12:04
1.2 - 2014-11-24T16:48:48
Added iPad Mini 3 and iPad Air 2
- 2014-09-24T16:28:28
Added displayModelName
- 2014-09-23T21:04:28
Added iPhone 6 models