[ad_1]
Apple Documentations has an article about overrideUserInterfaceStyle
This property will be helpful to pressure a view controller to make use of gentle or darkish mode.
However what about PKPaymentAuthorizationViewController (Apple Pay)?
guard let paymentViewController = PKPaymentAuthorizationViewController(paymentRequest: request) else {
delegate?.tournamentsCoordinatorApplePayError(.applePayControllerError)
return
}
paymentViewController.view.overrideUserInterfaceStyle = .darkish
paymentViewController.delegate = self
navigationController.current(paymentViewController, animated: true)
Would not PKPaymentAuthorizationViewController work as a standard view controller or it obeys solely World Settings?
[ad_2]
