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 0.1.4
A Utility Framework to access Device related information
⭐️ 1
🕓 5 days ago
.package(url: "https://github.com/Vignesh-Thangamariappan/DeviceUtility.git", from: "0.1.4")

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

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, vignesh.thangamariappan@gmail.com

License

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

GitHub

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

Release Notes

Initial Release
47 weeks ago

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