Skip to content

Vignesh-Thangamariappan/DeviceUtility

Repository files navigation

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.

About

A Utility Framework to access Device related information

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages