Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Adicione o fluigSDKCore.framework, fluigSDKUi.framework e fluigSDKFlows.framework ao seu projeto no Xcode.

Configuração

Edite seu AppDelegate.swift da seguinte forma:

Bloco de código
titleAppDelegate.swift
func application(_ application: UIApplication,

                     didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        self.window = UIWindow(frame: UIScreen.main.bounds)

        let viewcontroller = ViewController()

        self.window?.rootViewController = viewcontroller

        let tips = ["fluig SDK iOS", "second tip", "third tip"]

        let conf = LoginFlowConfiguration(

            backgroundVideoUrl: Bundle.main.url(forResource: "backgroundLogin", withExtension: "mp4"),

            emailRequestPageTips: tips,

            passwordRequestPageTips: tips,

            onSuccessReplaceRootWith: viewcontroller

        )

        LoginFlow(configuration: conf).startAsRoot(window: self.window!)

        self.window?.makeKeyAndVisible()

        return true

    }