GithubHelp home page GithubHelp logo

peekpop's People

Contributors

albinekcom avatar bartoszpolaczykmw avatar hansstefan avatar marmelroy avatar matrixsenpai avatar mradamboyd avatar t-pham avatar thedarkcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

peekpop's Issues

Incorrect viewController bounds

Awesome framework btw!

Peek shows viewController with UIScreen bounds instead of PeekPopView's bounds. So what I end up with is the clipping of the my actual viewController's view (and not the whole view itself).

Works well on a 6s though.

Typo

In GitHub repository description, "compatability" should be "compatibility".

Use PeekPop in Objective C project with bridging header

@marmelroy How to use PeekPop swift file in Objective C project ?

I used swift library with bridging header in my objective c project but there seems to a problem with source view registration for 3D Touch.

When i converted this file i found this method under ForceTouchDelegate

  • (void)registerFor3DTouch:(UIView * _Nonnull)sourceView viewController:(UIViewController * _Nonnull)viewController;

Now i do not know how to use this method to register source view for 3D Touch.

Present real view controller in the preview

Instead of making a screenshot of a view controller at the begining and presenting a screenshot in the preview, you can present a viewController itself in the preview and make a screenshot of it at the commit. This screenshot is for smooth animation purpose only. The advantage is that if you have a content which is loaded from the server then it is loaded in the preview, just like in the original 3d Touch PeekPop. Below is the effect I was able to get.
peekpop

Retain cycle

There is a retain cycle that avoids to release the memory of the view controller using the PeekPop. The references to view controller and delegates inside the library should be weak.

Not working on scroll

It works only on first scroll frame, on invisible content not working.
Even after scroll, first frame freezes.

In sample app, if change column to 1 you can see the results.

Swift 3 compatibility

Do you have any plan to adapt it for Swift 3?
This is really great project and I wish to use it

Add an UIPreviewAction while peeking.

I know this cannot be implemented without the 3D touch API but could you add a gesture recognizer for when the peek method is run, and while the user still has is finger on the view and he swipes up, the action menu comes from below. Could you do that? Is that possible?

Consider using UIVisualEffectView with UIBlurEffect

Currently producing blur screenshots takes about 0.20 second on iphone 5s, and this time is added every time the peekPopPossible method is invoked. Using UIVisualEffectView takes no time to generate, which makes the peekPop gesture much faster.

A plus is that all animations in the background are still visible (and blurred). The downside is that you cannot control blur radius, but this is only a visual downside.

Using Kingfisher and peek doesn't load image

Im using Kingfisher to download the images, and Im trying to show the a picture on peek mode, but it seams the view controller is going to be shown a screenshot is loaded or something, because the code gets to where it downloads, the callback is called when completed, but the actual Image is not shown

Swift3

Any plans to move to Swift3?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.