ENSwiftSideMenu
  • November 25, 2023

A lightweight flyover side menu component for iOS with the UIDynamic‘s bouncing animation, UIGestures and UIBlurEffect. Allows you to use native UINavigationController‘s logic to manage view controllers. The component is written in Swift.

Requirements


  • iOS 9 or higher

Installation


CocoaPods

The recommended way for installating ENSwiftSideMenu is via the CocoaPods package manager

platform :ios, ‘9.0’
pod ‘ENSwiftSideMenu’, ‘~> 0.1.4’

Manual Install

All you need is import ENSideMenu.swift and ENSideMenuNavigationController.swift to your project folder.

Usage Example


  1. Create a root UINavigationController subclassing from ENSideMenuNavigationController
  2. Create a UIViewController for your side menu
  3. Initilize the menu view with a source view and menu view controller:

override func viewDidLoad() {
super.viewDidLoad()
sideMenu = ENSideMenu(sourceView: self.view, menuViewController: MyMenuViewController(), menuPosition:.Left)
// show the navigation bar over the side menu view
view.bringSubviewToFront(navigationBar)
}

  1. To change content view controller use next line in your menu view controller:

sideMenuController()?.setContentViewController(destViewController)

  1. Check example project for more explanation

GitHub


View Github

#animation #ios #sidemenuswift #swift #uicomponents #uinavigation
YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...