AdmiralSwiftUI Views AlertView - admiral-team/admiralui-ios GitHub Wiki
Overview
AlertView
- the component that presents a warning message to the user with diffrent options.
Code
AlertView(
image: Image(uiImage: Asset.Documents.Solid.accountDetailSolid.image),
title: "Заголовок в одну или две строки",
message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
buttonTitle: "Действие",
buttonAction: {},
additionalButtonTitle: "Альтернативное действие",
additionalButtonAction: {})
You can create a AlertView
by specifying the following parameters in the initializer
Initializer parameters:
- title: String? - Title label text.
- message: String? - Message label text.
- image: UIImage? - An image of imageView..
- actions: String - The actions that the user can take in response to the alert or action sheet..
- messageLabelTextAlignment: String - Message label text alignment..
- messageFont: String - Message label font style..
- titleFont: String - Title label font style.
- messageTextColor: String - Message label text color..
- titleTextColor: String - Title label text color.
Live Example
To run live demo with AlertView
open Xcode and run project with Example target. Then in the main page -> Alert&Onboarding -> Alert:
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.