authorizationViewControllerPresenter
The view controller that presents HealthKit authorization sheets.
Declaration
weak var authorizationViewControllerPresenter: UIViewController? { get set }Discussion
By default, the system infers the correct view controller to show HealthKit’s authorization sheet. In some cases, you can improve the user experience by explicitly defining how the system presents the authentication sheets. In particular, consider setting this property when using HealthKit in an iPadOS app.
See Also
Accessing HealthKit
authorizationStatus(for:)HKAuthorizationStatusgetRequestStatusForAuthorization(toShare:read:completion:)HKAuthorizationRequestStatusisHealthDataAvailable()supportsHealthRecords()requestAuthorization(toShare:read:completion:)requestAuthorization(toShare:read:)requestPerObjectReadAuthorization(for:predicate:completion:)handleAuthorizationForExtension(completion:)