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.
- Host: GitHub
- URL: https://github.com/remirobert/transitionviewcontroller
- Owner: remirobert
- License: mit
- Created: 2014-10-10T17:22:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-13T10:49:21.000Z (over 11 years ago)
- Last Synced: 2025-01-11T06:13:16.616Z (over 1 year ago)
- Language: Swift
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.