...
Bloco de código | ||||
---|---|---|---|---|
| ||||
/// - parameters: /// - logoImage: The image to be used as a logo on login screens. /// - backgroundVideoUrl: The url of the video to be used as the background on login screens. ///This takes precedence over `backgroundImageUrl` /// - backgroundImage: The image to be userd as background on login screens. /// - gradiendStartColor: The color to be used on login screens background. /// - gradiendEndColor: Composes with `gradientStartColor` to form a gradient to be used on login ///screens background. /// - emailRequestPageTips: If informed show a pager with tips to be shown on email request login screen /// passwordRequestPageTips: If informed show a pager with tips to be shown on password request login screen /// - onSuccessReplaceRootWith: If informed is used to replace the application root ViewController ///on successfull login, otherwise a notification is sent via NotificationCenter. public init(logoImage: UIImage? = nil, backgroundVideoUrl: URL? = nil, backgroundImage: UIImage? = nil, gradientStartColor: UIColor = UIColor.fluigSdk.pink, gradientEndColor: UIColor = UIColor.fluigSdk.lightOrange, emailRequestPageTips: [String] = [], passwordRequestPageTips: [String] = [], onSuccessReplaceRootWith: UIViewController? = nil) { self.logoImage = logoImage self.backgroundVideoUrl = backgroundVideoUrl self.backgroundImage = backgroundImage self.gradientStartColor = gradientStartColor self.gradientEndColor = gradientEndColor self.emailRequestPageTips = emailRequestPageTips self.passwordRequestPageTips = passwordRequestPageTips self.onSuccessReplaceRootWith = onSuccessReplaceRootWith } |
Para o botão Abrir Safe ID funcionar corretamente no arquivo *.plist do seu aplicativo adicione um array com a chave LSApplicationQueriesSchemes e um item do tipo String com o valor safeid.