dependencies: [
.package(url: "https://github.com/katsuyax/CBDevice, from: "1.0.1"),
]
pod 'CBDevice'
import CBDevice
print(CBDevice.modelName()) // ex) iPhone 15
print(CBDevice.modelCode()) // ex) iPhone16,1
iPhone/iPad/iPod touch released by April 2024
CBDevice is available under the MIT license. See the LICENSE file for more info.