ZeroScreenView - admiral-team/admiralui-ios GitHub Wiki

Class

A view contains image, title label, subtitle label and button.


Declaration

open class ZeroScreenView: UIView, AnyAppThemable 

Overview

Zero screen view serves in case that no information. For example user choice filter parameters. If result of filtering is empty you can show this screen.

Configure a Zero screen view

For configuration to zero screen view need set image, title, subtitle and title for button.

let zeroScreen = ZeroScreenView(image: UIImage(),
                                title: "Title",
                                subTitle: "SubTitle",
                                buttonTitle: "ButtonTitle")

Handle a tap button

For handling tap to button need set delegate.

zeroScreen.delegate = self

Method didTapButton for recognising tap button in protocol ZeroScreenViewDelegate.

func didTapButton(_ zeroScreenView: ZeroScreenView)

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.