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

[iOS App Dev Libraries, Controls, Tutorials, Examples and Tools]Arek – Swift Permission Handling With Built In Pre-Permission, And Re-Enable Permission Requests

$
0
0

Arek is an open source Swift 3 based library submitted by ennioma providing a Swift based wrapper over any kind of permission that enables pre-permissions, and can automatically ask the user to re-enable permissions.

With Arek you can easily configure how frequently you would like the user to re-enable permissions (the default is once per day), present the user with pre-permission pop-ups to ask them to enable permissions when the user permission shows up with a single variable, and turn off pop-ups to re-enable permissions completely if desired.

This snippet shows how easy it is to request permissions with Arek:

let permission = EMEvent()

permission.manage { (status) in
    switch status {
        case .Authorized:
           symbol = "?"
        case .Denied:
            symbol = "??"
        case .NotDetermined:
            symbol = "?"
     }
}

You can find Arek on Github here.

A nice library for handling permissions.

Original article: Arek – Swift Permission Handling With Built In Pre-Permission, And Re-Enable Permission Requests

©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