Small Informers SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Struct

A view contains only text in bubble view with arrow.


Declaration

public struct CustomSwitch: View

Overview

Informer is a component that used to show additional information.

Configure a Small Informer View

SmallInformer(
 title: .constant("Text")
)

Also you can set style background for small informer. For example, if you want show information with error we recommend use style error.

SmallInformer(
 style: .error
)

Configure arrow in Small Informer View

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:

SmallInformer(
 arrowDirection: .bottom
)

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 a pull request in our project. You can read more about this in the Github documentation.