AdmiralSwiftUI ZeroScreenView - admiral-team/admiralui-ios GitHub Wiki
ZeroScreenView
- the component is used to attract the user's attention as a message. A view with title, subtitle and image.
public var body: some View {
ZeroScreenView(
image: Image("Landscape_4"),
title: "Title",
subtitle: "Subtitle",
buttonTitle: "Ok",
buttonAction: {})
}
}
You can create a ZeroScreenView
by specifying the following parameters in the initializer
- image: Image - The image displayed in the image view.
- title: String - The text that the title label displays.
- subtitle: String - The text that the subtitle label displays.
- buttonTitle: String - The text that the button displays.
- isLoadingButton: Binding<Bool> - For button with an activity indicator
To run live demo with ZeroScreenView
open Xcode and run project with Example target. Then in the Main Page -> Alerts -> ZeroScreenView
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.