UIDevice-DisplayName 4.4.4

UIDevice-DisplayName 4.4.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2023
SPMSupports SPM

Maintained by Stephan Heilner.



  • By
  • Stephan Heilner

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