SlideMenuControllerSwift alternatives and similar libraries
Based on the "Menu" category.
Alternatively, view SlideMenuControllerSwift 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. -
CircleMenu
:octocat: ⭕️ CircleMenu is a simple, elegant UI menu with a circular layout and material design animations. Swift UI library made by @Ramotion -
GuillotineMenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine. -
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. -
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. 🌶
SaaSHub - Software Alternatives and Reviews
* 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 SlideMenuControllerSwift or a related project?
README
SlideMenuControllerSwift
iOS Slide View based on iQON, Feedly, Google+, Ameba iPhone app.
[sample](Screenshots/SlideMenuControllerSwift3.gif)
Installation
CocoaPods
pod 'SlideMenuControllerSwift'
Carthage
if iOS8 or later, Carthage is supported
- Add
github "dekatotoro/SlideMenuControllerSwift"
to your Cartfile. - Run
carthage update
.
for more info, see Carthage
Manually
Add the SlideMenuController.swift
file to your project.
Usage
Setup
Add import SlideMenuControllerSwift
in your file
In your app delegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// create viewController code...
let slideMenuController = SlideMenuController(mainViewController: mainViewController, leftMenuViewController: leftViewController, rightMenuViewController: rightViewController)
self.window?.rootViewController = slideMenuController
self.window?.makeKeyAndVisible()
return true
}
Storyboard Support
- Inherit
SlideMenuController
and put UIViewController in a storyboard. - Override
awakeFromNib
, then instantiate any view controllers
class ContainerViewController: SlideMenuController {
override func awakeFromNib() {
if let controller = self.storyboard?.instantiateViewControllerWithIdentifier("Main") {
self.mainViewController = controller
}
if let controller = self.storyboard?.instantiateViewControllerWithIdentifier("Left") {
self.leftViewController = controller
}
super.awakeFromNib()
}
}
If you want to use the custom option, please set them before calling the init method, like so:
SlideMenuOptions.leftViewWidth = 50
SlideMenuOptions.contentViewScale = .50
...
You can access from UIViewController
self.slideMenuController()?
or
if let slideMenuController = self.slideMenuController() {
// some code
}
add navigationBarButton
viewController.addLeftBarButtonWithImage(UIImage(named: "hoge")!)
viewController.addRightBarButtonWithImage(UIImage(named: "fuga")!)
open and close
// Open
self.slideMenuController()?.openLeft()
self.slideMenuController()?.openRight()
// close
self.slideMenuController()?.closeLeft()
self.slideMenuController()?.closeRight()
monitor the states of menu, you can use SlideMenuControllerDelegate
use this:
func leftWillOpen()
func leftDidOpen()
func leftWillClose()
func leftDidClose()
func rightWillOpen()
func rightDidOpen()
func rightWillClose()
func rightDidClose()
Requirements
Requires Swift4.0 and iOS 9.0 and ARC.
If you are developing in the Swift1.1 ~ 3.2, please use branch of swift1.1 ~ 3.
If you want to use even iOS8.0, please to import the code directly.
If you want to use objective-c even iOS6.0, plesea use SlideMenuControllerOC.
Features
- Highly customizable
- Complete example
Contributing
Forks, patches and other feedback are welcome.
Creator
SlideMenuControllerSwift
SlideMenuControllerOC
License
SlideMenuControllerSwift is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.
*Note that all licence references and agreements mentioned in the SlideMenuControllerSwift README section above
are relevant to that project's source code only.