All Projects → Ramotion → Preview Transition

Ramotion / Preview Transition

Licence: mit
This project is maintained by Ramotion, Inc. We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Preview Transition

Adaptive Tab Bar
AdaptiveController is a 'Progressive Reduction' Swift UI module for adding custom states to Native or Custom iOS UI elements. Swift UI component by @Ramotion
Stars: ✭ 2,032 (-2.26%)
Mutual labels:  library
Bluetooth Library
Bluetooth client library for Android.
Stars: ✭ 172 (-91.73%)
Mutual labels:  library
Unifiedtransform
A school management Software
Stars: ✭ 2,248 (+8.13%)
Mutual labels:  library
Riscv Fs
F# RISC-V Instruction Set formal specification
Stars: ✭ 173 (-91.68%)
Mutual labels:  library
Move To Library Sketchplugin
You can now move symbol from your project to any library and re-attach all the symbol instances to this library. also it keep the overrides without any problems and it work with abstract that have libraries not in your local machine
Stars: ✭ 174 (-91.63%)
Mutual labels:  library
Movingnumbersview
Moving numbers effect in SwiftUI
Stars: ✭ 175 (-91.58%)
Mutual labels:  library
Confetti.js
A simple confetti animation for your website :)
Stars: ✭ 170 (-91.82%)
Mutual labels:  library
Spannabletextview
SpannableTextView is a custom TextView which lets you customize the styling of slice of your text or statment via Spannables, but without the hassle of having to deal directly with Spannable themselves.
Stars: ✭ 177 (-91.49%)
Mutual labels:  library
Fe
前端热门文章阅读
Stars: ✭ 174 (-91.63%)
Mutual labels:  library
Ksprefs
🚀⚡ Kotlin SharedPreferences wrapper & cryptographic preferences android library.
Stars: ✭ 176 (-91.53%)
Mutual labels:  library
Otpview
A custom view to enter otp/pin of different sizes used usually in cases of authentication.
Stars: ✭ 172 (-91.73%)
Mutual labels:  library
Tracy
C++ frame profiler
Stars: ✭ 3,115 (+49.83%)
Mutual labels:  library
Transitioner
A library for dynamic view-to-view transitions
Stars: ✭ 2,049 (-1.44%)
Mutual labels:  library
Cutintolayout
CutIntoLayout allows you to erase the background.
Stars: ✭ 172 (-91.73%)
Mutual labels:  library
Walletjs
💳A little library to handle money amounts.
Stars: ✭ 177 (-91.49%)
Mutual labels:  library
Json Api
Implementation of JSON API in PHP 7
Stars: ✭ 171 (-91.77%)
Mutual labels:  library
Urlbuilder
Java Builders: URL builder
Stars: ✭ 174 (-91.63%)
Mutual labels:  library
Disco
a protocol to encrypt communications and a cryptographic library based on Disco
Stars: ✭ 178 (-91.44%)
Mutual labels:  library
Json table
Flutter package: Json Table Widget to create table from json array
Stars: ✭ 178 (-91.44%)
Mutual labels:  library
Pdf Viewer
A Lightweight PDF Viewer Android library which only occupies around 125kb while most of the Pdf viewer occupies up to 16MB space.
Stars: ✭ 175 (-91.58%)
Mutual labels:  library

PREVIEW TRANSITION

Preview Transition is a simple preview gallery UI controller with animated tranisitions


We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Stay tuned for the latest updates:


Twitter Travis Carthage compatible CocoaPods CocoaPods codebeat badge Donate

About

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

Licence

Preview-transition is released under the MIT license. See LICENSE for details.

Installation

Just add the Source folder to your project or use CocoaPods like this:

pod "PreviewTransition"

or Carthage users can simply add to their Cartfile:

github "Ramotion/preview-transition"

Usage

  1. import PreviewTransition

  2. Create UITableViewController inherit, inheriting from PTTableViewController

  3. Add UITableViewDelegate methods

public override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return <RowsCount>
}

public override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    return tableView.dequeueReusableCellWithIdentifier(<CellIdentifier>, forIndexPath: indexPath)
}
  1. 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>)

  1. set cell height

  2. create image names (image sizes must be equal to screen size or bigger)

let images = [image_name, image_name, image_name, image_name, image_name] // image names
  1. set image and text for ParallaxCell
public override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {

    guard let cell = cell as? ParallaxCell else {
      return
    }

    let imageName = images[indexPath.row]

    if let image = UIImage(named: imageName) {
      cell.setImage(image, title: <SetText>)
    }
}

your tableViewController should look like DemoTableViewController

Method public override func tableView(tableView: didSelectRowAtIndexPath indexPath:) we will add later. (step 10)

  1. Create UIViewController, inheriting from PTDetailViewController

  2. Add action for backButton and call popViewController()

func backButtonHandler() {
    popViewController()
}
  1. Push this UIViewController in UITableViewController. Add method
public override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {

  // create viewController
  let <YourViewController> = storyboard?.instantiateViewControllerWithIdentifier(<identifier>)
  if case let viewController as <YourViewController> = viewController {
     pushViewController(viewController)
  }
}
  1. Configure UINavigationBar
// transparent background
UINavigationBar.appearance().setBackgroundImage(UIImage(), forBarMetrics: .Default)
UINavigationBar.appearance().shadowImage = UIImage()
UINavigationBar.appearance().translucent = true
UINavigationBar.appearance().tintColor = .whiteColor()

// set font
if let font = UIFont(name: <Font name> , size: 18) {
      UINavigationBar.appearance().titleTextAttributes = [
        NSForegroundColorAttributeName : UIColor.whiteColor(),
        NSFontAttributeName : font
      ]
}

📄 License

Preview Transition is released under the MIT license. See LICENSE for details.

This library is a part of a selection of our best UI open-source projects.

If you use the open-source library in your project, please make sure to credit and backlink to https://www.ramotion.com/

📱 Get the Showroom App for iOS to give it a try

Try this UI component and more like this in our iOS app. Contact us if interested.



Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].