Giter Club home page Giter Club logo

elrotatedmenu's Introduction

ELRotatedMenu

An iOS side menu with animation of rotation, inspired by UIMovement (https://uimovement.com/ui/244/sticker-app/)

ELRotatedMenu Screenshot

Requirements

  • iOS >= 8.0

Installation

Manual Install

  • 1st Option: Copy the ELRotatedMenu Folder in your project.
  • 2nd Option: Drag Framework/ELRotatedMenu.framework into your project's Framework folder. Then select Target-> General -> Build Phases and under Embede Frameworks add ELRotatedMenu.framework.

Usage

  1. In Storyboard set the class of Initial View Controller to ELRotatedMenu.

ELRotatedMenu Screenshot

  1. Ctrl + Left Click on ELRotatedMenu and drag into the Menu View Controller. In the segue menu you will see, select "rotated menu". Next select the segue and in the Attributes Insepctor set as identifier "el_menu".

ELRotatedMenu Screenshot

  1. The same flow as above to set the Front View Controller and set as identifier "el_front"

Ready. Run your app and you 'll see the rotated menu.

  1. Change Front View Controller

import ELRotatedMenu

and then

self.menuViewController?.setFrontViewController(viewController: <YourNewFrontViewController>)

Deligation

Implement ELRotatedMenuDelegate and set your ViewController as the delegate of ELRotatedMenu

self.menuViewController?.delegate = self

and track the flow of animation with the following delegate's functions:

func willRevealMenu()

func willHideMenu()

Customisation

You can customise the following properties:

public var menuButtonSize: CGSize
public var hideMenuButton: Bool { get set }
public var menuButtonBackgroundColor: UIColor
public var menuImage: UIImage!
public var closeMenuImage: UIImage!
public var extendFrontViewHeight: Bool

Contact

Efthymios Liapatis

elrotatedmenu's People

Contributors

euthimis87 avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.