KyleGoddard/KGFloatingDrawer
소개
Swift로 작성된 플로팅 내비게이션 드로어로, 독특한 애니메이션 효과를 제공합니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalKGFloatingDrawer
KGFloatingDrawer is a reimplementation of JVillella/JVFloatingDrawer in Swift. A floating drawer style navigation. KGFloatingDrawer provides a unique twist on the nav drawer pattern.

#Update
Currently working on updating this for Swift 3 and to take care of some of the reported issues.
#Usage
func prepareDrawerViewController() -> KGDrawerViewController {
let drawerViewController = KGDrawerViewController()
drawerViewController.centerViewController = drawerSettingsViewController()
drawerViewController.leftViewController = leftViewController()
drawerViewController.rightViewController = rightViewController()
drawerViewController.backgroundImage = UIImage(named: "sky3")
_drawerViewController = drawerViewController
return drawerViewController
}
#Installation
KGFloatingDrawer can be installed as a CocoaPod. To install it, simply add the following line to your Podfile:
pod 'KGFloatingDrawer', '~> 0.2.0'
###Important Note
KGFloatingDrawer requires Swift 2.0, Xcode 7.0 and CocoaPods 0.36.0
#How it Works
###KGDrawerViewController
The KGDrawerViewController maintains references to center, left and optionally
right view controllers. The centerViewController, leftViewController and
rightViewController properties can all be reassigned in order to replace them.
###Opening & Closing Drawers
KGDrawerViewController has three functions used to open and close the nav
drawer.
func openDrawer(side: KGDrawerSide, animated:Bool, complete: (finished: Bool) -> Void) {}
func closeDrawer(side: KGDrawerSide, animated: Bool, complete: (finished: Bool) -> Void) {}
func toggleDrawer(side: KGDrawerSide, animated: Bool, complete: (finished: Bool) -> Void) {}
###Drawer Width
The leftDrawerWidth and rightDrawerWidth are used to set the width of the
drawer once it has been opened. Note that this is not the edge size of the
centerViewController. The default value for this is 280 points.
###Background Image
The background image displayed when the drawer is open is set via the
backgroundImage property.
###Animator
KGFloatingDrawer comes with a spring animator with the configurable
properties: animationDelay, animationDuration, initialSpringVelocity, and
springDamping
But JVillella/JVFloatingDrawer has custom animators!?
I know! The ability to set a custom animator is coming soon.
#Author
Kyle Goddard
JVillella/JVFloatingDrawer was authored by Julian Villella
#License
KGFloatingDrawer is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…