AdmiralSwiftUI Views ErrorView - admiral-team/admiralui-ios GitHub Wiki
ErrorView
- the component is used to attract the user's attention as a message.
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
To run live demo with ErrorView
open Xcode and run project with Example target. Then in the main page -> ErrorView -> ErrorView:
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.