Documentation

SwiftUI Microphone Permissions View

A SwiftUI View for introducing and initiating a system request for microphone access from the user.

MicrophonePermissionsView with a light color scheme. A SwiftUI Starter Kit Component.
MicrophonePermissionsView with a light color scheme.
MicrophonePermissionsView with a dark color scheme. A SwiftUI Starter Kit Component.
MicrophonePermissionsView with a dark color scheme.

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 MediaCaptureController to request system permissions for both microphone and camera access, using the AVFoundation framework.