PreviewTransition
PreviewTransition is a simple preview gallery UI controller with animated tranisitions. Swift UI library made by @Ramotion
This project is maintained by Ramotion, Inc.
We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Looking for developers for your project?
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.
Requirements
- iOS 9.0+
- Xcode 9
Installation
Just add the Source folder to your project or use CocoaPods like this:
or Carthage users can simply add to their Cartfile
:
github "Ramotion/preview-transition"
Usage
-
import PreviewTransition
-
Create UITableViewController inherit, inheriting from
PTTableViewController
-
Add UITableViewDelegate methods
- add a ParallaxCell
storyboards:
create a cell and inherit from ParallaxCell
; don't forget set the identifier <CellIdentifier>
or programmatically:
register a cell in viewDidLoad tableView.registerClass(ParallaxCell, forCellReuseIdentifier:<CellIdentifier>)
-
set cell height
-
create image names (image sizes must be equal to screen size or bigger)
- set image and text for ParallaxCell
your tableViewController should look like DemoTableViewController
Method public override func tableView(tableView: didSelectRowAtIndexPath indexPath:)
we will add later. (step 10)
-
Create UIViewController, inheriting from
PTDetailViewController
-
Add action for backButton and call
popViewController()
- Push this UIViewController in UITableViewController. Add method
- Configure UINavigationBar