An iOS side menu with animation of rotation, inspired by UIMovement (https://uimovement.com/ui/244/sticker-app/)
- iOS >= 8.0
- 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.
- In Storyboard set the class of Initial View Controller to ELRotatedMenu.
- 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".
- 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.
- Change Front View Controller
import ELRotatedMenu
and then
self.menuViewController?.setFrontViewController(viewController: <YourNewFrontViewController>)
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()
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
Efthymios Liapatis
- email: eliapatis@gmail.com
- github: https://github.com/euthimis87