SwiftUI Microphone Permissions View
A SwiftUI View for introducing and initiating a system request for microphone access from the user.
Usage
(
MicrophonePermissionsView: .init(
interactor: {},
didSelectAllow: {}
didSelectSkip)
)
Features
- Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports offline usage in SwiftUI Previews for easy debugging and testing.
Notes
- Use
MediaCaptureController
to request system permissions for both microphone and camera access, using theAVFoundation
framework.