Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.03 KB

iOS-Expendable-Menu

A simple expendable Menu written in Swift.

Add as many items as you want to

alt text alt text

Determine the direction

alt text alt text

Protocol Usage

var expandingViewsMenu: [UIView] = []
var expandingViewsSpaceInDegree: CGFloat
var backgroundView: UIView
var backgroundViewColor: UIColor
var isRunningAnimation: Bool
var isMenuExpanded: Bool
var startFromPoint: CGPoint?
var endAtPoint: CGPoint?
var expandingDirection: Direction

Usage

let expendableViews: [UIView] = [...]
expendableMenuButton.expandingViewsMenu = expendableViews

// toggle if the UIView-Element was pressed
yourExpandableUIView.toggle(onView: self.view)