Swiftpack.co - stephanheilner/UIDevice-DisplayName as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by stephanheilner.
stephanheilner/UIDevice-DisplayName 4.4.4
Returns a friendly name for any iOS device.
⭐️ 18
🕓 1 week ago
iOS tvOS
.package(url: "https://github.com/stephanheilner/UIDevice-DisplayName.git", from: "4.4.4")


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)")


UIDevice-DisplayName is available under the MIT license. See the LICENSE file for more info.


NSLog("Device Display Name: %@", UIDevice.current.displayName())

NSLog("Device Display Name With Type: %@", UIDevice.current.displayName(includeType: true))


Stars: 18
Last commit: 1 week ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Updated to support CocoaPods again
1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics