To run the example project, clone the repo, and run pod install
from the Example directory first.
MBLDeviceModelHelper is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MBLDeviceModelHelper'
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"))
]
Get device name:
import MBLDeviceModelHelper
let deviceName = UIDevice().type.rawValue
MBLDeviceModelHelper is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 4 |
Last commit: 19 weeks ago |
iPhone 15 Models added
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics