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

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Swift Package Manager

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

CocoaPods

pod 'CBDevice', '>= 1.0.4'

Usage

import CBDevice

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

Supported devices

iPhone/iPad/iPod touch released by September 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