EULA View¶
FUIEULAViewController
¶
open class FUIEULAViewController: FUIWelcomeController, FUIBlurNavigationBarViewController
This UIViewController
is used to display the End User License Agreement, EULA.
There are two buttons on the tool bar at the bottom of the screen, "Agree" and "Disagree", to choose to
confirm or reject the agreement. In addition, there is a "Cancel" button at the
left on the navigation bar.
Developer should provide the text for the headlineLabel
property, the attributed text for the eulaTextView
property,
and set the delegate property to handle user interactions.
let eulaController = FUIEULAViewController.createInstanceFromStoryboard()
eulaController.headlineLabel.text = "CUSTOM EULA"
eulaController.eulaTextView.attributedText = NSAttributedString(string: "This is a legally binding agreement (\"Agreement\") between ...", attributes: [NSAttributedStringKey.font: UIFont(name: "Georgia", size: 24.0)!
])
eulaController.delegate = self
let navController = UINavigationController.init(rootViewController: eulaController)
self.navigationController?.present(navController, animated: true, completion: nil)
Theming¶
fdlFUIEULAView_headlineLabel {
font-size: 28;
font-name: thinSystem;
font-color: @primary1;
}
fdlFUIEULAView_confirmButton {
background-tint-color: @tintColorDark;
}
fdlFUIEULAView_rejectButton {
background-tint-color: @tintColorDark;
}
fdlFUIEULAView_cancelButton {
background-tint-color: @tintColorDark;
}
fdlFUIEULAView_navigationBar {
background-color: clear;
background-tint-color: @tintColor;
bar-style: default;
}
Attention¶
The delegate object with type FUIEULADelegate
is declared as a weak reference. On deallocation it will be automatically set to nil. To keep it alive as expected, developer should retain the delegate object during its whole execution scope.
Last update: April 14, 2021