Documentation

SwiftUI Contact Permissions View

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

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

Usage

ContactPermissionsView(
    interactor: .init(
        didSelectEnable: {},
        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 ContactController to trigger system contact access authorization, or query a user’s contact list from CNContactStore.