Swiftpack.co - mobillium/MBLDeviceModelHelper as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mobillium.
mobillium/MBLDeviceModelHelper 1.3.0
Human readable device name helper for iOS apps
⭐️ 3
🕓 1 week ago
.package(url: "https://github.com/mobillium/MBLDeviceModelHelper.git", from: "1.3.0")

MBLDeviceModelHelper

Version Swift Package Manager License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • iOS 8.0+

Installation

CocoaPods

MBLDeviceModelHelper is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MBLDeviceModelHelper'

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding MBLDeviceModelHelper as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/mobillium/MBLDeviceModelHelper.git", .upToNextMajor(from: "1.2.0"))
]

Usage

Get device name:

import MBLDeviceModelHelper

let deviceName = UIDevice().type.rawValue

License

MBLDeviceModelHelper is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 3
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.3.0
1 week ago
  • Arm Simulator Added
  • iPhone 14, iPhone 14 Plus, iPhone 14 Pro, iPhone 14 Pro Max Added
  • iPhone SE 3rd Generation Added
  • iPad 9th Generation Added
  • iPad Air 5th Generation Added
  • iPad Pro 11" & 12.9" Names Fixed

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