Árvore de páginas

Você está vendo a versão antiga da página. Ver a versão atual.

Comparar com o atual Ver Histórico da Página

« Anterior Versão 11 Próxima »

Índice

Instalação

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

Configuração

Edite seu AppDelegate.swift da seguinte forma:

AppDelegate.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

    }
  • Sem rótulos