CBDevice

1.0.2

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

What's New

1.0.2

2024-04-30T06:56:13Z

Full Changelog: 1.0.1...1.0.2

Installation

Swift Package Manager

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

CocoaPods

pod 'CBDevice'

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.

Description

  • Swift Tools 5.10.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Oct 23 2024 09:58:25 GMT-0900 (Hawaii-Aleutian Daylight Time)