Skip to content

This library provide device(iPhone) model name with human readable way

License

Notifications You must be signed in to change notification settings

AnbalaganD/iModels

Repository files navigation

iModels

Version License Platform Swift Package Manager

This library facilitates developers in easily determining the device model, which is particularly valuable for gathering statistics on user device distribution. It offers various other benefits as well.

Example

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

Installation

CocoaPods

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

pod 'iModels'

Swift Package manager (SPM)

iModels is available through SPM. Use below URL to add as a dependency

dependencies: [
    .package(url: "https://github.com/AnbalaganD/iModels", .upToNextMajor(from: "0.1.2"))
]

Usage

import iModels

Device.modelName

Author

Anbalagan D

License

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