BaseKillSwitchView
open class BaseKillSwitchView : UIView
The BaseKillSwitchView used to be subclassed to add functionality to the UIView.
Subspec: Utility/KillSwitchProvider
final class KillSwitchView: BaseKillSwitchView {
private let descriptionLabel = UILabel()
override func setUserMessage(_ message: String) {
descriptionLabel.setText(message, using: theme.textStyleTheme.bodyNormal.withAlignment(.center))
}
}
The BaseKillSwitchView is a simple class that combines a view with the setUserMessage functionality. The setUserMessage class should be overrided in the subclass.
-
Sets the user message with the given parameter.
Declaration
Swift
open func setUserMessage(_ message: String)Parameters
messageCustom message to display to the user.
BaseKillSwitchView Class Reference