Swiftpack.co - MasamiYamate/YMTGetDeviceName as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by MasamiYamate.
MasamiYamate/YMTGetDeviceName 5.6.1
Get device name from model number
⭐️ 34
🕓 1 week ago
.package(url: "https://github.com/MasamiYamate/YMTGetDeviceName.git", from: "5.6.1")

YMTGetDeviceName

This framework is get device name from model number.

Description

Standard UIDevice can only distinguish iPhone or iPad.
This framework is get device name from model number.

Installation

Use Swift Package Manager

Use Carthage

Add to Cartfile

github "MasamiYamate/YMTGetDeviceName" ~> 5.6.1

Execute the following command

carthage update --platform iOS --use-xcframeworks

Use CocoaPods with Podfile:

Add to Podfile

pod 'YMTGetDeviceName'

How to use

Import

import YMTGetDeviceName

Get device name

print(YMTGetDeviceName.getDeviceName())

Q&A

What is the range of supported devices?

Supports iOS devices up to 2023/09/13 (JST)

GitHub

link
Stars: 34
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics