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. -
PagingKit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries. -
Admob for SwiftUI
This library helps you to easily integrate the Admob SDK in your SwiftUI app. It is a wrapper around the Google Mobile Ads SDK for iOS. It provides a SwiftUI view that you can use to display banner ads in your app above your tabbar.
InfluxDB - Purpose built for real-time analytics at any 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 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.