SwiftUI Microphone Permissions View
A SwiftUI View for introducing and initiating a system request for microphone access from the user.
Usage
MicrophonePermissionsView(
interactor: .init(
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
MediaCaptureControllerto request system permissions for both microphone and camera access, using theAVFoundationframework.