Shield
Shield is an iOS/macOS/tvOS framework that wraps various authorization APIs (e.g. camera, photo, location). It relies on the Stanley framework.
Installation
You can install Shield using cocoapods, Carthage, or as a framework. When installing as a framework, ensure you also link to Stanley as Shield relies on it.
Cocoapods
-
Add Shield to your Podfile
-
Pull in the entire pod or
pod 'Shield' -
pull in subspecs
pod 'Shield/Camera' pod 'Shield/Photos'
-
-
Update your pods
$ pod update
Subspecs
Shield/Location, wrapsCoreLocationauthorization APIs (iOS/tvOS/macOS)Shield/Camera, wrapsAVFoundationvideo authorization APIs (iOS)Shield/Microphone, wrapsAVFoundationaudio authorization APIs (iOS)Shield/MediaLibrary, wrapsMediaPlayermedia library authorization APIs (iOS)Shield/Photos, wrapsPhotosauthorization APIs (iOS/tvOS)Shield/Health, wrapsHealthKitauthorization APIs (iOS)Shield/Siri, wrapsIntentsSiri authorization APIs (iOS)Shield/Speech, wrapsSpeechspeech recognizer authorization APIs (iOS)Shield/Bluetooth, wrapsCoreBluetoothbluetooth peripheral authorization APIs (iOS)Shield/Event, wrapsEventKitevents and reminders authorization APIs (iOS/macOS)Shield/Contacts, wrapsContactsauthorization APIs (iOS/macOS)Shield/Accessibility, wrapsApplicationServicesaccessibility authorization APIs (macOS)Shield/Accounts, wrapsAccountssocial accounts authorization APIs (iOS/macOS)Shield/Home, wrapsHomeKitauthorization APIs (iOS)Shield/Motion, wrapsCoreMotionauthorization APIs (iOS)Shield/Security, wrapsSecurityauthorization APIs for elevating execution privileges (macOS)Shield/Local, wrapsLocalAuthenticationTouch ID authorization APIs (iOS/macOS)Shield/Notification, wrapsUserNotificationsauthorization APIs (iOS/tvOS)Shield/VideoSubscriberAccount, wrapsVideoSubscriberAccountauthorization APIs (iOS/tvOS)
Dependencies
Third party:
Apple:
HealthKit,iOSonlyIntents,iOSonlySpeech,iOSonlyAVFoundation,iOSonlyPhotos,iOSandtvOSCoreBluetooth,iOSonlyApplicationServices,macOSonlyCoreLocation,iOS,macOSandtvOSEventKit,iOSandmacOSContacts,iOSandmacOSAppKit,macOSonlyMediaPlayer,iOSonlyHomeKit,iOSonlySecurity,macOSonlyCoreMotion,iOSonlyAccounts,iOSandmacOSMediaPlayer,iOSonlyLocalAuthorization,iOSandmacOSUserNotifications,iOSandtvOSVideoSubscriberAccount,iOSandtvOS