ActionBarView - admiral-team/admiralui-ios GitHub Wiki

Class

A view contains action views. It serves presenting action views with title and image when user swipe view.

Default type ActionBarView

Second type ActionBarView


Declaration

class ActionBarView: UIView, ActionBarViewStyleProtocol, AnyAppThemable 

Overview

Swipe action can be displayed when an row on a table view swiped. The action can be displayed right and can be displayed with a custom tint color and a system image.

Configure a Action Bar View

For configuration Action Bar you must create ActionItemBarAction for presenting in Action bar. After you can configure Action bar.

let action = ActionItemBarAction(
              image: UIImage(),
              imageStyle: .primary,
              style: .default,
              text: "Text",
              handler: {}
            )

let actionBarView = ActionBarView(style: .default)
actionBarView.appendAction(action)
actionBarView.frame.size = CGSize(width: 240, height: 80)

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.