BigInformer - admiral-team/admiralui-ios GitHub Wiki
Class
A view contains title label, description label and link button.
Declaration
open class BigInformer: UIView, AnyAppThemable, AccessibilitySupport
Overview
Informer is a component that used to show some information.
Configure a Big Informer View
For configuration a big informer view need to set title text, description text and text for link button.
let informerView = BigInformerView()
informerView.titleText = "Title"
informerView.descriptionText = "Description"
informerView.linkText = "Link"
Also you can set style background for big informer. For example, if you want show information with error we recommend use style error.
informerView.style = .error
Handle a tap link
For handling tap to link button need set delegate.
informerView.delegate = self
Method didTapLinkLabel for recognising tap link button in protocol BigInformerDelegate.
func didTapLinkLabel(_ bigInformer: BigInformer)
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.