Skip to content

This library retrieves the model name and code of the OS device. For example, like iPhone 15 Pro.

License

Notifications You must be signed in to change notification settings

katsuyax/CBDevice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Swift Package Manager

    dependencies: [
        .package(url: "https://github.com/katsuyax/CBDevice, from: "1.0.2"),
    ]

CocoaPods

pod 'CBDevice', '>= 1.0.2'

Usage

import CBDevice

print(CBDevice.modelName()) // ex) iPhone 15
print(CBDevice.modelCode()) // ex) iPhone16,1

Supported devices

iPhone/iPad/iPod touch released by April 2024

License

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

About

This library retrieves the model name and code of the OS device. For example, like iPhone 15 Pro.

Resources

License

Stars

Watchers

Forks

Packages

No packages published