SideMenuControllerDelegate

public protocol SideMenuControllerDelegate : AnyObject

Undocumented

Animation

  • Called to allow the delegate to return a non-interactive animator object for use during view controller transitions. Same with UIKit’s navigationController:animationControllerForOperation:fromViewController:toViewController:.

    Default Implementation

    Declaration

    Swift

    func sideMenuController(_ sideMenuController: SideMenuController,
                            animationControllerFrom fromVC: UIViewController,
                            to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?

    Parameters

    sideMenuController

    The side menu controller

    fromVC

    The currently visible view controller.

    toVC

    The view controller that should be visible at the end of the transition.

    Return Value

    The animator object responsible for managing the transition animations, or nil if you want to use the fade transitions.

Switching

  • Side menu will show a view controller.

    Default Implementation

    Declaration

    Swift

    func sideMenuController(_ sideMenuController: SideMenuController, willShow viewController: UIViewController, animated: Bool)

    Parameters

    sideMenuController

    current side menu controller

    viewController

    the view controller to show

    animated

    whether it’s animated

  • Side menu did showed a view controller.

    Default Implementation

    Declaration

    Swift

    func sideMenuController(_ sideMenuController: SideMenuController, didShow viewController: UIViewController, animated: Bool)

    Parameters

    sideMenuController

    current side menu controller

    viewController

    the view controller shown

    animated

    whether it’s animated

Revealing