KWDrawerController alternatives and similar libraries
Based on the "Menu" category.
Alternatively, view KWDrawerController alternatives based on common mentions on social networks and blogs.
-
RESideMenu
iOS 7/8 style side menu with parallax effect. -
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. -
ViewDeck
An implementation of the sliding menu found in various iOS apps. -
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 -
Persei
Animated top menu for UITableView / UICollectionView / UIScrollView written in Swift -
PagingMenuController
Paging view controller with customizable menu in Swift. -
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. -
Side-Menu.iOS
Animated side menu with customizable UI -
GuillotineMenu
Our Guillotine Menu Transitioning Animation implemented in Swift reminds a bit of a notorious killing machine. -
ENSwiftSideMenu
A simple side menu for iOS written in Swift. -
Context-Menu.iOS
You can easily add awesome animated context menu to your app. -
SideMenuController
A side menu controller written in Swift for iOS -
Panels
Panels is a framework to easily add sliding panels to your application -
YNDropDownMenu
✨ Awesome Dropdown menu for iOS with Swift 5.0 -
PagingKit
PagingKit provides customizable menu UI. It has more flexible layout and design than the other libraries. -
IGLDropDownMenu
An iOS drop down menu with pretty animation and easy to customize. -
SwipeMenuViewController
Swipable tab and menu View and ViewController. -
PopMenu
PopMenu is pop animation menu inspired by Sina weibo / NetEase app. -
FlowingMenu
Interactive view transition to display menus with flowing and bouncing effects in Swift -
InteractiveSideMenu
iOS Interactive Side Menu written in Swift. -
SPLarkController
Custom transition between controllers. Settings controller for your iOS app. -
MenuItemKit
UIMenuItem with image and closure(block) action -
LLSlideMenu
This is a spring slide menu for iOS apps - 一个弹性侧滑菜单 -
MKDropdownMenu
🔻 Dropdown Menu for iOS with many customizable parameters to suit any needs -
ExpandingMenu
ExpandingMenu is menu button for iOS written in Swift. -
FrostedSidebar
Hamburger Menu using Swift and iOS 8 API's -
CategorySliderView
slider view for choosing categories. add any UIView type as category item view. Fully customisable -
AKSideMenu
Beautiful iOS side menu library with parallax effect. Written in Swift -
DropDownMenuKit
UIKit drop down menu, simple yet flexible and written in Swift -
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. -
AZDropdownMenu
A simple dropdown menu component for iPhone -
VLDContextSheet
Context menu similar to the one in the Pinterest iOS app -
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. 🌶
Appwrite - The open-source backend cloud platform
* 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 KWDrawerController or a related project?
README
KWDrawerController
Drawer view controller that is easy to use!
Installation
CocoaPods (iOS 8+ projects)
KWDrawerController is available on CocoaPods. Add the following to your Podfile:
# Swift 3
pod 'KWDrawerController', '~> 3.7'
# Swift 4~
pod 'KWDrawerController', '~> 4.2'
pod 'KWDrawerController/RxSwift' # with RxSwift extension
Manually
Simply drag and drop the DrawerController
folder into your existing project.
Usage
Code
import UIKit
import KWDrawerController
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let mainViewController = MainViewController()
let leftViewController = LeftViewController()
let rightViewController = RightViewController()
let drawerController = DrawerController()
drawerController.setViewController(mainViewController, .none)
drawerController.setViewController(leftViewController, .left)
drawerController.setViewController(rightViewController, .right)
/// Customizing
window = UIWindow(frame: UIScreen.mainScreen().bounds)
window?.rootViewController = drawerController
window?.makeKeyAndVisible()
return true
}
}
Storyboard
Set
DrawerController
as the Custom Class of the Initial ViewController.Connect the
DrawerEmbedLeftControllerSegue
and/or theDrawerEmbedRightControllerSegue
fromDrawerController
to your left/right controllers.Connect the
DrawerEmbedMainControllerSegue
fromDrawerController
to your main controller.Set the segue identifiers of both the inspector of
DrawerController
and the segues themselves.
Open / Close
/// Open
self.drawerController?.openSide(.left)
self.drawerController?.openSide(.right)
/// Close
self.drawerController?.closeSide()
Delegate
optional func drawerDidAnimation(
drawerController: DrawerController,
side: DrawerSide,
percentage: Float
)
optional func drawerDidBeganAnimation(
drawerController: DrawerController,
side: DrawerSide
)
optional func drawerWillFinishAnimation(
drawerController: DrawerController,
side: DrawerSide
)
optional func drawerWillCancelAnimation(
drawerController: DrawerController,
side: DrawerSide
)
optional func drawerDidFinishAnimation(
drawerController: DrawerController,
side: DrawerSide
)
optional func drawerDidCancelAnimation(
drawerController: DrawerController,
side: DrawerSide
)
Customizing
Transition
DrawerTransition
is a module that determines the rendering direction to move the Drawer. It is implemented by inheriting DrawerTransition
.
- DrawerSlideTransition
- DrawerScaleTransition
- Use is not recommended.
- DrawerParallaxTransition
- DrawerFloatTransition
- When using the
Transition
,Overflow Transition
should also useDrawerFloatTransition
.
- When using the
- DrawerFoldTransition
- DrawerSwingTransition
- DrawerZoomTransition
Overflow Transition
Overflow Transition
be used when Transition
beyond the open range of the drawer.
- DrawerSlideTransition
- DrawerScaleTransition
- This is natural when used with
DrawerSlideTransition
,DrwaerParallaxTransition
,DrawerFoldTransition
, andDrawerSwingTransition
.
- This is natural when used with
- DrawerParallaxTransition
- DrawerFloatTransition
- When using the
Overflow Transition
,Transition
should also useDrawerFloatTransition
.
- When using the
- DrawerFoldTransition
- Use is not recommended.
- DrawerSwingTransition
- Use is not recommended.
- DrawerZoomTransition
Animator
Animator is a module that controls the speed of moving a drawer. It is implemented by inheriting DrawerAnimator
or DrawerTickAnimator
.
- DrawerLinearAnimator
- DrawerCurveEaseAnimator
- DrawerSpringAnimator
- DrawerCubicEaseAnimator
- DrawerQuadEaseAnimator
- DrawerQuartEaseAnimator
- DrawerQuintEaseAnimator
- DrawerCircEaseAnimator
- DrawerExpoEaseAnimator
- DrawerSineEaseAnimator
- DrawerElasticEaseAnimator
- DrawerBackEaseAnimator
- DrawerBounceEaseAnimator
Options
public var isTapToClose: Bool
public var isGesture: Bool
public var isAnimation: Bool
public var isOverflowAnimation: Bool
public var isShadow: Bool
public var isFadeScreen: Bool
public var isBlur: Bool
public var isEnable: Bool
Changelog
- 1.0 First Release.
- 1.1 Bug Fix, Add animations.
- 2.0 Refactoring.
- 2.1 Bug Fix, Update animation.
- 2.2 Fix animation, and some bugs.
- 3.0 Written in Swift 3.0
- 3.1 Fix Access Control issues on DrawerController.
- 3.2 Fix Access Control issues on Transition.
- 3.3 Fix Access Control issues on initializer.
- 3.4 Remove debug log.
- 3.5 Fixed bug where touch ignores is not applied for "Absolute Controller".
- 3.6 Fixed an occurs issue while the drawer was open and layout changing.
- 3.6.1 Fixed layout issue when rotate device.
- 3.7 Fixed not updating issues on properties.
- 4.0 Support Swift 4.
- 4.1 Implement new flag that enables direction auto-switching.
- 4.1.1 Support RxSwift(If you want).
- 4.1.2
- Fix issues on auto layout of child view controllers.
- Replace naming.
- Implement
getViewController
method. - Reduce cloning size.
- 4.1.3
- Fix crashed on load. (#12)
- 4.1.4
- Add state methods to delegate. (#16)
- Fix access control issues. (#18)
- Fixed DrawerFloatTransition bug. (#20)
- DrawerController incorrectly manages lifecycles of child controllers. (#21 #22)
- 4.1.5
- Code and performance improvements and bug fixes. (#24 @rivera-ernesto)
- 4.1.6
- Fix transition bugs.
- Fix gesture not working bugs.
- Fix right drawer placement on iPads (#28 @rivera-ernesto)
- 4.2
- Support swift 4.2. (#31)
⚠️ Requirements
- iOS 8.0+
- Swift 3.0+
🔑 License
KWDrawerController is under MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the KWDrawerController README section above
are relevant to that project's source code only.