Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easily identify Apple devices in Swift with DeviceModel—supports iPhones, iPads, and more

License

NotificationsYou must be signed in to change notification settings

hyperdevs-team/DeviceIdentificator

Repository files navigation

Swift Package ManagerPlatformPlatformPlatformPlatformBuild Statuscodecovcodebeat badge

Introduction

UseDeviceModel to get some usefull information about some Apple devices (specially iPhones and iPads).

Currently the Mac models available in this library correspond only to those that use Apple Silicon chips

Platforms

Support for iOS, iPadOS, macOS and tvOS

Support

For Swift 4 please use v1

For Swift 5 please use v2+

Installation

Swift Package Manager

Add the package using Xcode or copy this into yourPackage.swift file:

.package(url:"https://github.com/hyperdevs-team/DeviceIdentificator", from:"4.0.0")

Manually

To install it manually, drag the DeviceIdentificator folder into your app project in Xcode. You can also add it as a git submodule by running the following command:

$ git submodule add https://github.com/hyperdevs-team/DeviceIdentificator.git

Usage

import DeviceIdentificatorletdeviceModel=DeviceModel.currentprint("Current device:\(deviceModel.name)")letisIpad= deviceModel.isIpadletisSimulator= deviceModel.isSimulator

About

Easily identify Apple devices in Swift with DeviceModel—supports iPhones, iPads, and more

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp