Inherits from UIView
Declared in TKSideDrawerView.h

Overview

A class that represents a side drawer view.

Properties

defaultSideDrawer

The default side drawer created when the TKSideDrawerView is instantiated.

@property (nonatomic, strong, readonly, nonnull) TKSideDrawer *defaultSideDrawer

Declared In

TKSideDrawerView.h

mainView

The main content.

@property (nonatomic, strong, nonnull) UIView *mainView

Declared In

TKSideDrawerView.h

sideDrawers

An array containing the side drawers of the TKSideDrawerView instance.

@property (nonatomic, strong, readonly, nonnull) NSArray<__kindofTKSideDrawer*> *sideDrawers

Declared In

TKSideDrawerView.h

Instance Methods

addSideDrawer:

Adds TKSideDrawer to TKSideDrawerView.

- (void)addSideDrawer:(TKSideDrawer *__nonnull)sideDrawer

Parameters

sideDrawer

The TKSideDrawer that will be added.

Declared In

TKSideDrawerView.h

addSideDrawerAtPosition:

Add TKSideDrawer to the TKSideDrawerView instance at specified position.

- (TKSideDrawer *__nonnull)addSideDrawerAtPosition:(TKSideDrawerPosition)position

Parameters

position

The position of the TKSideDrawer.

Return Value

TKSideDrawer that was created.

Declared In

TKSideDrawerView.h

attachDrawerToWindow

Attach all sidedrawers to application’s key window.

- (void)attachDrawerToWindow

Declared In

TKSideDrawerView.h

detachDrawerFromWindow

Detach all sidedrawers from application’s key window.

- (void)detachDrawerFromWindow

Declared In

TKSideDrawerView.h

initWithFrame:mainView:

Initilizes new TKSideDrawerView

- (instancetype __nonnull)initWithFrame:(CGRect)frame mainView:(UIView *__nonnull)mainView

Parameters

frame

Frame of the TKSideDrawerView.

mainView

The main content.

Return Value

TKSideDrawerView instance.

Declared In

TKSideDrawerView.h

removeAllSideDrawers

Remove all TKSideDrawers from TKSideDrawerView.

- (void)removeAllSideDrawers

Declared In

TKSideDrawerView.h

removeSideDrawer:

Remove TKSideDrawer from TKSideDrawerView.

- (void)removeSideDrawer:(TKSideDrawer *__nonnull)sideDrawer

Parameters

sideDrawer

The TKSideDrawer to be removed.

Declared In

TKSideDrawerView.h