Proposer alternatives and similar libraries
Based on the "Permissions" category.
Alternatively, view Proposer alternatives based on common mentions on social networks and blogs.
-
PermissionScope
Intelligent iOS permissions UI and unified API (Supports Location, Notifications, Camera, Contacts, Calendar, Photos, Microphone, BT, Activity Monitoring, HealthKit and CloudKit). -
SPPermissions
Universal API for request permission and get its statuses. -
ClusterPrePermissions
Cluster's reusable pre-permissions utility that lets developers ask the users on their own dialog for photos or contacts access, before making the system-based request. This is based on the Medium post by Cluster describing the different ways to ask for iOS permissions (https://medium.com/p/96fa4eb54f2c). -
AREK
AREK is a clean and easy way to request any kind of iOS permission (with some nifty features 🤖) -
STLocationRequest
Request the Location Services via a 3D 360° flyover MKMapView 🗺 -
ISHPermissionKit
A polite and unified way of asking for permission on iOS -
JLPermissions
An iOS pre-permissions utility that lets developers ask users on their own dialog for calendar, contacts, location, photos, reminders, twitter, push notifications and more, before making the system-based permission request. -
ICanHas
Simplifies iOS user permission requests (location, push notifications, camera, contacts, calendar, photos, etc).
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Proposer or a related project?
README
Proposer
Proposer provides a single API to request permission for access Camera, Photos, Microphone, Contacts, Reminders, Calendar, Location or Notifications.
Requirements
Swift 4.2, iOS 9.0
(Swift 3, use version 1.1.0)
Example
Only one single API:
proposeToAccess(_:agreed:rejected:)
In real world:
import Proposer
@IBAction func choosePhoto() {
let photos: PrivateResource = .photos
let propose: Propose = {
proposeToAccess(photos, agreed: {
print("I can access Photos. :]\n")
if UIImagePickerController.isSourceTypeAvailable(.savedPhotosAlbum) {
let imagePicker = UIImagePickerController()
imagePicker.sourceType = .savedPhotosAlbum
self.present(imagePicker, animated: true, completion: nil)
}
}, rejected: {
self.alertNoPermissionToAccess(photos)
})
}
showProposeMessageIfNeedFor(photos, andTryPropose: propose)
}
When you want to get user's location, thanks to Swift's enum, you can even choose the usage mode:
@IBAction func shareLocation() {
let location: PrivateResource = .location(.whenInUse)
let propose: Propose = {
proposeToAccess(location, agreed: {
print("I can access Location. :]\n")
}, rejected: {
self.alertNoPermissionToAccess(location)
})
}
showProposeMessageIfNeedFor(location, andTryPropose: propose)
}
Depending on your needs, you must add a NSLocationWhenInUseUsageDescription
or NSLocationAlwaysUsageDescription
to your Info.plist
See the demo for more information.
I recommend you add a UIViewController+Proposer.swift
file (like the demo) for show localized alert before the first proposal or when propose failed.
Installation
Feel free to drag Proposer.swift
to your iOS Project. But it's recommended to use Carthage (or CocoaPods).
Carthage
github "nixzhu/Proposer"
CocoaPods
pod 'Proposer'
Contact
NIX @nixzhu
License
Proposer is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Proposer README section above
are relevant to that project's source code only.