An open API service indexing awesome lists of open source software.

https://github.com/remirobert/transitionviewcontroller

TransitionViewController is the portage of RRCustomPageController for Swift.
https://github.com/remirobert/transitionviewcontroller

Last synced: about 2 months ago
JSON representation

TransitionViewController is the portage of RRCustomPageController for Swift.

Awesome Lists containing this project

README

          


TransitionViewController

TransitionViewController is the protage of RRCustomPageController for Swift language.
Check out the link for more details.



How to use it

Firstly, you have to add the protocol **PageController** to your UIViewController class.

```Swift
@objc protocol PageController {
var titlePageController: String? {get set}
var imagePageController: UIImage? {get set}
}
```


```Swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.size.width,
UIScreen.mainScreen().bounds.size.height))

var c1 = testViewController()
c1.imagePageController = UIImage(named: "user3")

var c2 = testViewController()
c2.titlePageController = "Custom Transition"

var c3 = testViewController()
c3.imagePageController = UIImage(named: "like")

let transitionController = TransitionViewController(controllersParam: [c1, c2, c3])
transitionController.startController = 1

self.window?.rootViewController = transitionController
self.window?.makeKeyAndVisible()
return true
}
```

Author


Rémi ROBERT, remi.robert@epitech.eu

License


TransitionViewController is available under the MIT license. See the LICENSE file for more info.