Shield is an iOS/macOS/tvOS framework that wraps various authorization APIs (e.g. camera, photo, location). It relies on the Stanley framework.
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.
-
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
Shield/Location
, wrapsCoreLocation
authorization APIs (iOS
/tvOS
/macOS
)Shield/Camera
, wrapsAVFoundation
video authorization APIs (iOS
)Shield/Microphone
, wrapsAVFoundation
audio authorization APIs (iOS
)Shield/MediaLibrary
, wrapsMediaPlayer
media library authorization APIs (iOS
)Shield/Photos
, wrapsPhotos
authorization APIs (iOS
/tvOS
)Shield/Health
, wrapsHealthKit
authorization APIs (iOS
)Shield/Siri
, wrapsIntents
Siri authorization APIs (iOS
)Shield/Speech
, wrapsSpeech
speech recognizer authorization APIs (iOS
)Shield/Bluetooth
, wrapsCoreBluetooth
bluetooth peripheral authorization APIs (iOS
)Shield/Event
, wrapsEventKit
events and reminders authorization APIs (iOS
/macOS
)Shield/Contacts
, wrapsContacts
authorization APIs (iOS
/macOS
)Shield/Accessibility
, wrapsApplicationServices
accessibility authorization APIs (macOS
)Shield/Accounts
, wrapsAccounts
social accounts authorization APIs (iOS
/macOS
)Shield/Home
, wrapsHomeKit
authorization APIs (iOS
)Shield/Motion
, wrapsCoreMotion
authorization APIs (iOS
)Shield/Security
, wrapsSecurity
authorization APIs for elevating execution privileges (macOS
)Shield/Local
, wrapsLocalAuthentication
Touch ID authorization APIs (iOS
/macOS
)Shield/Notification
, wrapsUserNotifications
authorization APIs (iOS
/tvOS
)Shield/VideoSubscriberAccount
, wrapsVideoSubscriberAccount
authorization APIs (iOS
/tvOS
)
Third party:
Apple:
HealthKit
,iOS
onlyIntents
,iOS
onlySpeech
,iOS
onlyAVFoundation
,iOS
onlyPhotos
,iOS
andtvOS
CoreBluetooth
,iOS
onlyApplicationServices
,macOS
onlyCoreLocation
,iOS
,macOS
andtvOS
EventKit
,iOS
andmacOS
Contacts
,iOS
andmacOS
AppKit
,macOS
onlyMediaPlayer
,iOS
onlyHomeKit
,iOS
onlySecurity
,macOS
onlyCoreMotion
,iOS
onlyAccounts
,iOS
andmacOS
MediaPlayer
,iOS
onlyLocalAuthorization
,iOS
andmacOS
UserNotifications
,iOS
andtvOS
VideoSubscriberAccount
,iOS
andtvOS