ExpandingMenu alternatives and similar libraries
Based on the "Menu" category.
Alternatively, view ExpandingMenu alternatives based on common mentions on social networks and blogs.
-
PageMenu
A paging menu controller built from other view controllers placed inside a scroll view (like Spotify, Windows Phone, Instagram) -
SideMenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less. -
SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift. -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
BTNavigationDropdownMenu
The elegant yet functional dropdown menu, written in Swift, appears underneath the navigation bar to display a list of defined items when a user clicks on the navigation title. -
GuillotineMenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine. -
PagingKit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries. -
CategorySliderView
slider view for choosing categories. add any UIView type as category item view. Fully customisable -
RadialMenu
RadialMenu is a custom control for providing a touch context menu (like iMessage recording in iOS 8) built with Swift & POP -
DTPagerController
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift. -
RHSideButtons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ExpandingMenu or a related project?
README
ExpandingMenu
ExpandingMenu is written in Swift.
Requirements
- iOS 8.0+
- Xcode 10.0+
- Swift 3.x+
Installation
CocoaPods
You can install CocoaPods with the following command:
$ gem install cocoapods
To integrate ExpandingMenu into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'ExpandingMenu', '~> 0.4'
end
Then, run the following command:
$ pod install
Carthage
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate ExpandingMenu into your Xcode project using Carthage, specify it in your Cartfile
:
github "monoqlo/ExpandingMenu" ~> 0.4
Run carthage update
to build the framework and drag the built ExpandingMenu.framework
into your Xcode project.
Manually
- Download and drop
/ExpandingMenu
folder in your project. - Congratulations!
Usage
import ExpandingMenu
let menuButtonSize: CGSize = CGSize(width: 64.0, height: 64.0)
let menuButton = ExpandingMenuButton(frame: CGRect(origin: CGPoint.zero, size: menuButtonSize), image: UIImage(named: "chooser-button-tab")!, rotatedImage: UIImage(named: "chooser-button-tab-highlighted")!)
menuButton.center = CGPoint(x: self.view.bounds.width - 32.0, y: self.view.bounds.height - 72.0)
view.addSubview(menuButton)
let item1 = ExpandingMenuItem(size: menuButtonSize, title: "Music", image: UIImage(named: "chooser-moment-icon-music")!, highlightedImage: UIImage(named: "chooser-moment-icon-music-highlighted")!, backgroundImage: UIImage(named: "chooser-moment-button"), backgroundHighlightedImage: UIImage(named: "chooser-moment-button-highlighted")) { () -> Void in
// Do some action
}
・・・
let item5 = ExpandingMenuItem(size: menuButtonSize, title: "Sleep", image: UIImage(named: "chooser-moment-icon-sleep")!, highlightedImage: UIImage(named: "chooser-moment-icon-sleep-highlighted")!, backgroundImage: UIImage(named: "chooser-moment-button"), backgroundHighlightedImage: UIImage(named: "chooser-moment-button-highlighted")) { () -> Void in
// Do some action
}
menuButton.addMenuItems([item1, item2, item3, item4, item5])
Customize
ExpandingMenuButton
// Bottom dim view
menuButton.bottomViewColor = UIColor.redColor()
menuButton.bottomViewAlpha = 0.2
// Whether the tapped action fires when title are tapped
menuButton.titleTappedActionEnabled = false
// Menu item direction
menuButton.expandingDirection = .Bottom
menuButton.menuTitleDirection = .Right
// The action when the menu appears/disappears
menuButton.willPresentMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}
menuButton.didPresentMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}
menuButton.willDismissMenuItems = { (menu) -> Void in
print("MenuItems dismissed.")
}
menuButton.didDismissMenuItems = { (menu) -> Void in
print("MenuItems will present.")
}
// Expanding Animation
menuButton.expandingAnimations = [] // No animation
menuButton.expandingAnimations = CustomAnimationOptions.all.symmetricDifference(.menuButtonRotate)
// Folding Animation
menuButton.foldingAnimations = .all
menuButton.foldingAnimations = [.MenuItemMoving, .MenuItemFade, .MenuButtonRotation]
ExpandingMenuItem
// Title
item.title = "text"
item.titleColor = UIColor.redColor()
// Title margin to menu item
item.titleMargin = 4
Author
monoqlo, [email protected]
License
ExpandingMenu is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ExpandingMenu README section above
are relevant to that project's source code only.