Get Updates By E-mail 

Article Written By:
Johann Dowa

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

  •  
  •  
  •  
  •  
  •  

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments