ErrorView - admiral-team/admiralui-ios GitHub Wiki
Class
A view contains text label and link control.
Declaration
public final class ErrorView: UIView, AnyAppThemable
Overview
Error view serves for presenting important information about error.
Configure a Error view
For configuration to error view need set text for text label and text for link button.
let errorView = ErrorView()
errorView.text = "Text"
errorView.buttonTitle = "Button text"
Handle a tap link
For handling tap to link button need set delegate.
let errorView = ErrorView()
errorView.delegate = self
Method didTapButton for recognising tap link button in protocol ErrorViewDelegate.
func didTapButton(_ errorView: ErrorView)
Contribution
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.