Skip to content

katsuyax/CBDevice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Swift Package Manager

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

Usage

import CBDevice

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

Supported devices

iPhone/iPad/iPod touch released by 2026

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

 
 
 

Contributors

Languages