Skip to content

MultiUser Passcode Controller

FUIMultiUserPasscodeController

open class FUIMultiUserPasscodeController: FUIPasscodeController, FUIBlurNavigationBarViewController

This passcode controller is for login to an app that supports multiple users.

The following properties needs to be set Before the navigation controller presents this FUIMultiUserPasscodeController:

  • logoImageView.image
  • logoImageViewSize
  • titleLabel.text
  • dataSource
  • delegate

A typical usage is as the sample code below:

        let passcodeController = FUIMultiUserPasscodeController()

        passcodeController.logoImageView.image = UIImage(named: "CompanyLogo", in: bundle, with: nil)
        passcodeController.logoImageView.contentMode = .scaleAspectFit
        passcodeController.logoImageViewSize = CGSize(width: 54, height: 27)
        passcodeController.titleLabel.text = "Company App"
        passcodeController.dataSource = self
        passcodeController.delegate = self

        let navigationController = FUINavigationController(rootViewController: passcodeController)
        navigationController.modalPresentationStyle = .fullScreen
        navigationController.modalTransitionStyle = .coverVertical
        self.present(navigationController, animated: true, completion: nil)

Theming

Supported fixed font UILabel class paths:

1
2
3
4
5
fdlFUIMultiUserPasscodeController_titleLabel
fdlFUIMultiUserPasscodeController_userNameLabel
fdlFUIMultiUserPasscodeController_userInfoLabel
fdlFUIMultiUserPasscodeController_errorMessageLabel
fdlFUIMultiUserPasscodeController_forgotPasscodeLabel

Supported fixed font UILabel properties:

1
2
3
font-size: (Size)
font-name: (Font Name)
font-color: (Color)

Supported UITextField class paths:

1
fdlFUIMultiUserPasscodeController_passcodeInputField

Supported UITextField properties:

1
2
3
4
border-color: (Color)
border-width: (Width)
corner-radius: (Radius)
font-color: (Color)

Supported UIButton class paths:

1
2
fdlFUIMultiUserPasscodeController_logInButton
fdlFUIMultiUserPasscodeController_switchUserButton

Supported UIButton properties:

1
2
3
4
background-color { -normal | -disabled }: (Color)
font-size: (Size)
font-name: (Font Name)
font-color { -disabled }: (Color)

Supported text input field ClearButton class paths:

1
fdlFUIMultiUserPasscodeController_clearButton

Supported text input field ClearButton properties:

1
2
image: (Image Name)
tint-color: (Color)

Supported UIBarButtonItem class paths:

1
fdlFUIMultiUserPasscodeController_addNewUserBarButtonItem

Supported UIBarButtonItem properties:

1
2
image: (Image Name)
background-tint-color: (Color)

Supported ImagePlaceholder class paths:

1
2
fdlFUIMultiUserPasscodeController_userImagePlaceholder
fdlFUIMultiUserPasscodeControllerUserCell_imagePlaceholder

Supported ImagePlaceholder properties:

1
2
3
font-size: (Size)
font-name: (Font Name)
font-color: (Color)

Supported ImagePlaceholderView class paths:

1
2
fdlFUIMultiUserPasscodeController_userImagePlaceholderView
fdlFUIMultiUserPasscodeControllerUserCell_imagePlaceholderView

Supported ImagePlaceholderView properties:

1
background-color: (Color)

Supported dynamic font UILabel class paths:

1
2
fdlFUIMultiUserPasscodeControllerUserCell_titleLabeldlFUIMultiUserPasscodeController_titleLabel
fdlFUIMultiUserPasscodeControllerUserCell_subtitleLabel

Supported dynamic font UILabel properties:

1
2
font-style: (Font Style)
font-color: (Color)

Last update: April 14, 2021