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

Overview

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

Code

public var body: some View {
    ErrorView(
            text: "Text",
            buttonTitle: "Title",
            isLoadingButton: .constant(false)),
            buttonAction: {})
 }

You can create a ErrorView by specifying the following parameters in the initializer

- text: String - Information text
- button Title: String - Title for the button
- isLoadingButton: Binding<Bool> - For button with an activity indicator
- button Action: @escaping () -> () - Closure for processing button tap

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.
⚠️ **GitHub.com Fallback** ⚠️