SmallInformer - admiral-team/admiralui-ios GitHub Wiki
Class
A view contains only text in bubble view with arrow.
Declaration
open class SmallInformer: UIView, AnyAppThemable, AccessibilitySupport
Overview
Informer is a component that used to show additional information.
Configure a Small Informer View
For configuration a small informer view need to set only text.
let informerView = SmallInformer()
informerView.titleText = "Title"
Also you can set style background for small informer. For example, if you want show information with error we recommend use style error.
informerView.style = .error
Configure arrow in Small Informer View
For configuration corner for arrow need use method setArrowDirection(direction: SmallInformerArrowDirection). Direction can be one of 4 types:
/// The arrow is at the top left
case up
/// The arrow is at the bottom left
case down
/// The arrow is at the top right
case upRight
/// The arrow is at the bottom right
case downRight
If you want to set arrow in bottom right corner:
informerView.setArrowDirection(direction: . downRight)
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.