Skip to main content

RtkNavigationBar

Overview

This view is used as Navigation bar and can be added anywhere on any UIView.
This view consist of title and back button. We can add custom action to back button by using
func setClicks(previousButton:@escaping(RtkControlBarButton)->Void)

Topics:

Creating a Navigation bar view

 init(title: String)

Creates a RtkNavigationBar with title.

Parameters:

title: Title shown at the center of NavigationBar.

Getting titleLabel which is of type UILabel

let titleLabel: RtkLabel

Getting backButton which is of type RtkControlBarButton

let leftButton: RtkControlBarButton

Setting back button click action.

func setBackButtonClick(callBack: @escaping(RtkControlBarButton)->Void)

This method is used to set the callback which is called when the user presses the back button.