bannzai/Kaeru
소개
iOS 작업 관리자처럼 뷰 컨트롤러 전환
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalKaeru
Kaeru can switch ViewController in NavigationController like iOS task manager UI (after iOS 9).
Movie

Usage
You can use HistoryNavigationController, that sub class of UINavigationController. It can be used like UINavigationController.
e.g
On storyboard
If you install through CocoaPods.

If you install through download or git clone.

Swift code in AppDelegate
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
let viewContoller = UIViewController()
let navigationController = HistoryNavigationController(rootViewController: viewContoller)
window?.rootViewController = navigationController
window?.makeKeyAndVisible()
return true
}
And you can call self.navigationController?.presentHistory() in UIViewController sub class. After it, appearance would change like iOS task manager UI.
@IBAction func showViewerButtonPressed(sender: AnyObject) {
navigationController?.presentHistory()
}
And it's possible tap each ViewController snap shots.
After it, begin scale animation and called automatically UINavigationContoller.popToViewController.
Customize
When called HistoryNavigationController.presentHistory(),
it's possible to set a custom backgroundView.
let view = UIView(frame: UIScreen.mainScreen().bounds)
view.backgroundColor = .redColor()
navigationController?.presentHistory(view)
This sample code write and run, when HistoryNavigationController appear, background becomes red.
TODO
- Support cocoapods.
- Support Carthage.
- Add delegate methods.
- Test.
License
Kaeru is available under the MIT license. See the LICENSE file for more info.
관련 프로젝트 살펴보기
불러오는 중…