AdmiralUIKit Views ErrorView - admiral-team/admiralui-ios GitHub Wiki

Overview

ErrorView - the component is used to attract the user's attention as a message.

Code

let errorView = ErrorView()
 errorView.text = "button"
 errrorView.action = {}

You can create a ErrorView with the zero frame rectangle by specifying the following parameters in init:

 - text: String - Information text
 - buttonTitle: String - Title for the button
 - isLoading: Bool - The loading flag of GhostButton. Activates when flag sets to true and dissapier when flag sets to false.

Live Example

To run live demo with ErrorView open Xcode and run project with Example target. Then in the main page -> 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 a pull request in our project. You can read more about this in the Github documentation.