Popularity
2.4
Growing
Activity
5.1
-
73
9
12

Programming language: Swift
License: MIT License
Tags: System    
Latest version: v1.21.0

Deviice alternatives and similar libraries

Based on the "System" category.
Alternatively, view Deviice alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Deviice or a related project?

Add another 'System' Library

README

CI Status Version License Platform

[Logo](./Example/Deviice/Deviice.png)

Version 2

The library has been completely rewritten from scratch. This version still offers the Deviice structure, but it has been marked as deprecated and will be removed in future versions. Now, the whole magic is done via the Device class.

Usage

There is documentation for all the classes, methods and properties in the code. To give a general idea, this is how things work.

let device = Device.init()  // This instantiate a `Device` object based on the current device.

print(device.model.marketingName)   // This prints "iPhone 12 Pro" in case it is running on an iPhone 12 Pro

There is also the possibility to get the actual device being simulated on a Mac.

let device = Device.init()

print(device.model.marketingName)           // This will print "Simulator"
print(device.actualModel.marketingName)     // This will print "iPhone 12 Pro" in case you're simulating an iPhone 12 Pro

With the first release, there's no chance to get the type of connectivity of a specific device. This will be probably added later.

Requirements

This library works on iOS 12 or higher.

Installation

Deviice is available through Swift Package Manager and CocoaPods.

Swift Package Manager

You can add this library via Swift Package Manager, using this url https://github.com/andrealufino/Deviice.

CocoaPods

To install it, simply add the following line to your Podfile:

pod "Deviice"

Author

Andrea Mario Lufino, andrealufino.com. Thanks to all the contributors.

License

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


*Note that all licence references and agreements mentioned in the Deviice README section above are relevant to that project's source code only.