Swiftpack.co - Vignesh-Thangamariappan/DeviceUtility as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Vignesh-Thangamariappan.
Vignesh-Thangamariappan/DeviceUtility v0.1.8
A Utility Framework to access Device related information
⭐️ 1
🕓 36 weeks ago
.package(url: "https://github.com/Vignesh-Thangamariappan/DeviceUtility.git", from: "v0.1.8")

DeviceUtility

A Utility framework to access Device related information

Platform: iOS 10.0+ Language: Swift 5 SPM compatible License: MIT

RequirementsUsageInstallationAuthorLicence

Requirements

DeviceUtility requires iOS 10+ and is compatible with Swift 5 projects.

Usage

DeviceUtility can be used to obtain Device related Information. The Device Info can be access through DeviceUtility.currentDevice.

Identify the Device Model:

DeviceUtility.currentDevice.model

Identify whether the current device has a notch or not.

DeviceUtility.currentDevice.hasNotch

Identify whether the current device is a phone, pad or mac(for catalyst).

DeviceUtility.currentDevice.isPhone
DeviceUtility.currentDevice.isPad
DeviceUtility.currentDevice.isMac

Installation

DeviceUtility is available through SPM. To install it, simply add the following line to your package.swift file:

.package(url: "https://github.com/Vignesh-Thangamariappan/DeviceUtility.git", .upToNextMajor(from: "0.1.0"))

Author

vignesh_thangamariappan, [email protected]

License

DeviceUtility is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 1
Last commit: 36 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

v0.1.8
36 weeks ago

Version 0.1.8

Commits

  • [0e8e6f13] chore: Update PR Template

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