-
Notifications
You must be signed in to change notification settings - Fork 483
Open
Description
It looks like Localization is not supported?
So I thought I would just do custom auth provider. See below...
class LocalizedAppleAuthProvider: FUIOAuth {
init() {
let buttonLabelText = NSLocalizedString("AuthSignInWithApple", comment: "")
let shortName = NSLocalizedString("AuthProviderApple", comment: "")
let buttonColor = UIColor.appleInverse
let iconImage = UIImage(systemName: "applelogo")?.withTintColor(.apple, renderingMode: .alwaysOriginal) ??UIImage().withTintColor(.apple, renderingMode: .alwaysOriginal)
//let (iconImage, buttonColor, buttonTextColor) = LocalizedAppleAuthProvider.appearanceForCurrentStyle()
let textColor = UIColor.black
super.init(
authUI: FUIAuth.defaultAuthUI()!,
providerID: "apple.com",
buttonLabelText: buttonLabelText,
shortName: shortName,
buttonColor: buttonColor,
iconImage: iconImage,
scopes: [],
customParameters: [:],
loginHintKey: nil
)
self.buttonAlignment = .center
}
}
...but cannot seem to be able to modify the color of the text on the button. So, on dark mode, I end up with
Thanks for the help,
J.
Metadata
Metadata
Assignees
Labels
No labels