Quantcast
Channel: Controls – TAGTECINFO
Viewing all articles
Browse latest Browse all 336

[iOS App Dev Libraries, Controls, Tutorials, Examples and Tools]AssistantKit – A Swift Library That Simplifies Gathering iOS Device And OS Details

$
0
0

AssistantKit from Anatoliy Voropay is an open source Swift library that simplifies gathering iOS device and OS details.

AssistantKit provides a simple clean syntax for detecting the device, screen size, screen scale interface orientation, and for gathering the cache and document directories.

This snippet from the readme shows how easy it is to detect device type with AssistantKit:

let device = Device.type

switch device {
case .Phone:      print("iPhone")
case .Pad:        print("iPad")
case .Pod:        print("iPod")
case .Simulator:  print("Simulator")
default:          print("Unknown")
}

You can find AssistantKit on Github here.

A handy library for detecting device properties.

Original article: AssistantKit – A Swift Library That Simplifies Gathering iOS Device And OS Details

©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.

Reference source: iOS App Dev Libraries, Controls, Tutorials, Examples and Tools


Viewing all articles
Browse latest Browse all 336

Trending Articles