Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 496 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 496 Bytes

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.