All Projects → ykyouhei → Kydrawercontroller

ykyouhei / Kydrawercontroller

Licence: mit
Side Drawer Navigation Controller similar to Android

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kydrawercontroller

Localize
Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.
Stars: ✭ 253 (-59.97%)
Mutual labels:  cocoapods, carthage, storyboard
Sidemenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.
Stars: ✭ 5,267 (+733.39%)
Mutual labels:  cocoapods, carthage, storyboard
Switch
💊 An iOS switch control implemented in Swift with full Interface Builder support
Stars: ✭ 132 (-79.11%)
Mutual labels:  cocoapods, carthage, storyboard
Swiftprogresshud
📦 SwiftProgressHUD is a user-friendly pure swift HUD. 支持Cocoapods 及 Carthage
Stars: ✭ 290 (-54.11%)
Mutual labels:  cocoapods, carthage, pod
Kyshutterbutton
KYShutterButton is a custom button that is similar to the shutter button of the camera app
Stars: ✭ 293 (-53.64%)
Mutual labels:  cocoapods, carthage, pod
Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (-31.01%)
Mutual labels:  cocoapods, carthage, storyboard
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+403.48%)
Mutual labels:  cocoapods, carthage, storyboard
Sidemenu
An interactive iOS side menu with rich features.
Stars: ✭ 442 (-30.06%)
Mutual labels:  cocoapods, carthage, storyboard
Orsserialport
Serial port library for Objective-C and Swift macOS apps
Stars: ✭ 609 (-3.64%)
Mutual labels:  cocoapods, carthage
Gradientview
Easily use gradients in UIKit for iOS & tvOS
Stars: ✭ 610 (-3.48%)
Mutual labels:  cocoapods, carthage
Swiftinstagram
Instagram API client written in Swift
Stars: ✭ 570 (-9.81%)
Mutual labels:  cocoapods, carthage
Jlroutes
URL routing library for iOS with a simple block-based API
Stars: ✭ 5,528 (+774.68%)
Mutual labels:  cocoapods, carthage
Keyboardshortcuts
Add user-customizable global keyboard shortcuts to your macOS app in minutes
Stars: ✭ 500 (-20.89%)
Mutual labels:  cocoapods, carthage
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (-16.61%)
Mutual labels:  cocoapods, carthage
Watchdoginspector
Shows your current framerate (fps) in the status bar of your iOS app
Stars: ✭ 497 (-21.36%)
Mutual labels:  cocoapods, carthage
Anim
Swift animation library for iOS, tvOS and macOS.
Stars: ✭ 520 (-17.72%)
Mutual labels:  cocoapods, carthage
Youtubekit
YoutubeKit is a video player that fully supports Youtube IFrame API and YoutubeDataAPI for easily create a Youtube app
Stars: ✭ 484 (-23.42%)
Mutual labels:  cocoapods, carthage
Openssl
OpenSSL package for SPM, CocoaPod, and Carthage, for iOS and macOS
Stars: ✭ 515 (-18.51%)
Mutual labels:  cocoapods, carthage
Badgehub
A way to quickly add a notification badge icon to any view. Make any view of a full-fledged animated notification center.
Stars: ✭ 592 (-6.33%)
Mutual labels:  cocoapods, pod
Haptica
Easy Haptic Feedback Generator 📳
Stars: ✭ 587 (-7.12%)
Mutual labels:  cocoapods, carthage

KYDrawerController

Carthage compatible Pod Version Pod Platform Pod License Language Swift version

KYDrawerController is a side drawer navigation container view controller similar to Android.

  • Storyboard Support
  • AutoLayout Support

image.png storyboard.pngdrawer.gif

Installation

CocoaPods

KYDrawerController is available on CocoaPods. Add the following to your Podfile:

pod 'KYDrawerController'

Manually

Just add the Classes folder to your project.

Usage

(see sample Xcode project in /Example)

Code

import UIKit
import KYDrawerController

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        
        let mainViewController   = MainViewController()
        let drawerViewController = DrawerViewController()
        let drawerController     = KYDrawerController()
        drawerController.mainViewController = UINavigationController(
            rootViewController: mainViewController
        )
        drawerController.drawerViewController = drawerViewController
        
        /* Customize
        drawerController.drawerDirection = .Right
        drawerController.drawerWidth     = 200
        */
       
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.rootViewController = drawerController
        window?.makeKeyAndVisible()
        
        return true
    }

Storyboard

  1. Set the KYDrawerController to Custom Class of Initial ViewController.

usage1.png

  1. Connects the KYEmbedDrawerControllerSegue to DrawerViewController from KYDrawerController

usage2.png

  1. Connects the KYEmbedMainControllerSegue to DrawerViewController from KYDrawerController

usage3.png

  1. Set the SegueIdentifiers to inspector of KYDrawerController.

usage4.png

Open/Close Drawer

func setDrawerState(state: DrawerState, animated: Bool)

Delegate

optional func drawerController(_ drawerController: KYDrawerController, willChangeState state: KYDrawerController.DrawerState)
optional func drawerController(_ drawerController: KYDrawerController, didChangeState state: KYDrawerController.DrawerState)

Objective-C version

https://github.com/AustinChou/KYDrawerController-ObjC

License

This code is distributed under the terms and conditions of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].