This is a Swift based demo project to show how to make the transition Pinterest liked.

Overview

PinterestSwift

Compatible with Xcode 11 / Swift 5.0

This is a Swift based demo project to show how to make the transition Pinterest 2.0+ liked.

Refer from StackOverFlow

TODO

Something looks like below:

And this is my copy:

Creator

Nicholas Tau

License

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

Comments
  • Swipe from left gesture

    Swipe from left gesture

    As well as the custom shrink effect, Pinterest lets you swipe from left to go back. Is it possible to include this in PinterestSwift? Alternatively, could the custom transition be animated as the user swipes from the left?

    swipe

    opened by cannyboy 3
  • WaterFallViewCell init fails while using this in a master detail app

    WaterFallViewCell init fails while using this in a master detail app

    I am using this within a master-detail app and calling WaterFallViewController when an item is selected in the master view (table). App is not able to load the WaterfallView and failing at required init(coder aDecoder: NSCoder) calling the fatal error. Debug trace is:

    Swift._assertionFailed (Swift.StaticString, Swift.String, Swift.StaticString, Swift.UInt) -> () ()

    Any thoughts?

    opened by smusa 3
  • License?

    License?

    First, thanks for building this library!

    Second, I'm a bit confused about the licensing. The README states that it's MIT licensed, but the code states that it's "All Rights Reserved."

    Would it be possible to get the inline code comments updated to reflect the README?

    I'd be happy to send a Pull Request that makes the change--if you're OK with the change.

    Thanks! :tophat:

    opened by BigBlueHat 2
  • PoptoRootViewContoller shows empty screen

    PoptoRootViewContoller shows empty screen

    After you pushed another viewcontroller to your detail view controller , if you want to poptoRootViewController i see empty white screen.

    Ho to fix that ?

    opened by yatanadam 1
  • 滑动到最底部的时候,push 和 pop 后 会出现不完美的显示

    滑动到最底部的时候,push 和 pop 后 会出现不完美的显示

    这里有个不完美的展示,如下图。 我发现是由于 NTTansition 这句前后转换坐标的时候,出现不一致的情况,pop 前后取出来的值竟然不一致,具体相差 64 pixel 刚好;如果没有滑到最后,或者多半不会出现这种不一致的情况。 很想知道问题在哪里,还希望花点时间来看下,谢谢😄 let leftUpperPoint = gridView!.convertPoint(CGPointZero, toView: toViewController.view)

    push 之前 simulator screen shot 2016 7 11 5 39 33

    pop 之后 simulator screen shot 2016 7 11 5 39 38

    opened by sseen 1
  • Using Your Code in Appcelerator

    Using Your Code in Appcelerator

    Hi there, I was wondering whether you could provide direction as how to use your transition in Appcelerator. Any guidance would be greatly appreciated.

    opened by RayKahn 1
  • NTHorizontalPageViewController cellForItemAt always entered with indexPath: (0, 0)

    NTHorizontalPageViewController cellForItemAt always entered with indexPath: (0, 0)

    Hello, I started having this problem after updating to XCode 12.0.1 and ios14. Before the update everything worked fine with ios 13.

    I will explain how I set up the project because I'm not an expert at XCode and I might be doing something wrong:

    1. I cloned this repo, then dragged all of the classes into an existing project I was working on.

    2. From the cloned project's storyboard, I copy pasted your navigation controller and the NTWaterfallViewController into my own project's storyboard as shown below. (I also tried building it from from scratch on the storyboard but got the same result). I set the classes to NTNavigationController and NTWaterfallViewController

    image

    Now when I run the project I see the Waterfall Collection View as expected. But no matter what image I click on, I ALWAYS get the image cell at indexpath (0,0)

    image

    image

    The cellForItemAt() function inside NTHorizontalPageViewController is always entered with indexpath: (0,0). I also checked the setToIndexPath() method but it's entered with the correct indexpath(0,3).

    When I recreate this on the cloned project it works fine(even on ios 14). But when I try to incorporate it into a new project by following the 2 steps I mentioned above, I get this bug. So maybe I'm doing something wrong during installation? Please point me in the right direction. Thank you!

    Edit: I tried with iPhone 8(ios 14) and it worked. The problem is specific to iPhone X and iPhone 11.

    The problem probably has to do with: pageView.scrollToItem(at: indexPath as IndexPath, at:.centeredHorizontally, animated: false) inside NTTransition. The scroll statement just doesn't work anymore with ios14 and xcode12

    opened by baris-cincik 1
Owner
Nicholas Tau
Nicholas Tau
Custom interactive transition like Apple Music iOS App (iOS 9). written in Swift.

MusicPlayerTransition Custom interactive transition like Apple Music iOS App. written in Swift. Demo See demo on Appetize.io Using Transition Animator

Airin 642 Nov 17, 2022
A custom modal transition that presents and dismiss a controller with an expanding bubble effect.

A custom modal transition that presents and dismiss a controller inside an expanding and shrinking bubble. Screenshot Usage Install through CocoaPods:

Andrea Mazzini 3.3k Dec 28, 2022
Elegant transition library for iOS & tvOS

Hero is a library for building iOS view controller transitions. It provides a declarative layer on top of the UIKit's cumbersome transition APIs—makin

Hero Transitions 21.2k Jan 3, 2023
SPLarkController - Custom transition between controllers. Settings controller for your iOS app.

SPLarkController About Transition between controllers to top. You can change animatable height after presentation controller. For presentation and dis

Ivan Vorobei 965 Dec 17, 2022
This component implements transition animation to crumble view-controller into tiny pieces.

StarWars Animation This component implements transition animation to crumble view-controller into tiny pieces. Check this project on dribbble. Also, r

Yalantis 3.7k Dec 29, 2022
Simple and elegant Dropdown Transition

Simple and elegant dropdown transition for iOS Why? I needed to perform the dropdown transition in the app I was building and I've found many great li

Aidar Nugmanoff 63 Sep 22, 2022
SamuraiTransition is an open source Swift based library providing a collection of ViewController transitions featuring a number of neat “cutting” animations.

SamuraiTransiton is a ViewController transition framework in Swift. It is an animation as if Samurai cut out the screen with a sword. transition types

hachinobu 273 Dec 29, 2022
Awesome iOS 11 appstore cards in swift 5.

Cards brings to Xcode the card views seen in the new iOS XI Appstore. Getting Started Storyboard Go to main.storyboard and add a blank UIView Open the

Paolo Cuscela 4.1k Dec 14, 2022
An emoji-liked rating view for iOS, implemented in Swift3.

TTGEmojiRate An emoji-liked rating view for iOS, implemented in Swift3. Android version: PeterSmileRate by SilicorniO. Great work ! :) Inspired by Rat

zekunyan 289 Jun 13, 2022
This app is a sample app that recognizes specific voice commands such as "make it red", "make it blue", "make it green", and "make it black" and change the background color of the view in the frame.

VoiceOperationSample This app is a sample app that recognizes specific voice commands such as "make it red", "make it blue", "make it green", and "mak

Takuya Aso 3 Dec 3, 2021
The demo project to show how to organize code to make SwiftUI apps easy to be test.

TestableApp I combined the idea to use functional programming instead of an loader instance in ModelView(I prefer to think of it as a service) and Res

VictorK 2 Jan 7, 2022
Custom-Transition - A repo about custom transition between two view controllers

Custom-Transition in SWIFT This is a repo about custom transition between two vi

Prakash Chandra Awal 0 Jan 6, 2022
Appstore card animation transition. UICollectionView and UITableView card expand animated transition

Appstore card animation transition. UICollectionView and UITableView card expand animated transition. This library tries to add the appstore transition to your own app. The goal is to be as simple as possible to integrate in an app while keeping the flexibility and customization alive.

appssemble 544 Dec 28, 2022
Shawn Frank 2 Aug 31, 2022
🔍 Awesome fully customize search view like Pinterest written in Swift 5.0 + Realm support!

YNSearch + Realm Support Updates See CHANGELOG for details Intoduction ?? Awesome search view, written in Swift 5.0, appears search view like Pinteres

Kyle Yi 1.2k Dec 17, 2022
A deep copy of Pinterest in Swift

Demo YouTube: Demo (2 minutes) 优酷:http://v.youku.com/v_show/id_XMzE3OTc5NDY2MA==.html?spm=a2h3j.8428770.3416059.1 The app is actually smoother than sh

Andy Tong 73 Sep 14, 2022
🔍 Awesome fully customize search view like Pinterest written in Swift 5.0 + Realm support!

YNSearch + Realm Support Updates See CHANGELOG for details Intoduction ?? Awesome search view, written in Swift 5.0, appears search view like Pinteres

Kyle Yi 1.2k Dec 17, 2022
Image slide-show viewer with multiple predefined transition styles, with ability to create new transitions with ease.

ATGMediaBrowser ATGMediaBrowser is an image slide-show viewer that supports multiple predefined transition styles, and also allows the client to defin

null 200 Dec 19, 2022
🥺Pinterest Layout Tutorial

PinterestTutorial-iOS ?? Pinterest Layout Tutorial 이미지 크기에 따라서 동적으로 셀의 레이아웃을 설정하는 핀터레스트 레이아웃 구현해 보았다. 완성 코드 UICollectionViewDelegateFlowLayout 의 서브클래스

Hyungyu Kim 6 May 10, 2022
Context menu similar to the one in the Pinterest iOS app

VLDContextSheet A clone of the Pinterest iOS app context menu. Example Usage VLDContextSheetItem *item1 = [[VLDContextSheetItem alloc] initWithTitle:

Vladimir Angelov 173 Mar 28, 2022