MusicLibraryPermissionsView
A SwiftUI View that introduces access to a user’s Apple Music Library and receives interaction events for initiating Music permissions from the system.
Usage
MusicLibraryPermissionsView(
interactor: .init(
didSelectEnable: {
// Example usage
//
// Task {
// let authorized = await MusicController.requestAuthorization()
// print(authorized)
// }
},
didSelectSkip: {}
)
)Features
- Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports usage in SwiftUI Previews for easy debugging and testing.