marmelroy / PeekPop

Peek and Pop with backwards-compatibility
MIT License
1.95k stars 123 forks source link

A simple UIAlertActionSheet should do the job. I think? #7

Closed Dershowitz011 closed 8 years ago

Dershowitz011 commented 8 years ago

Implement a swipe recogniser (.Up) and check for the location in TouchesMoved Method. We need the location movement about the Y axis so, let's say it the user moves the view 20 points upwards and the swipe direction being up while peeking, bring in an alert view in the action sheet style displaying the options needed. My implementation might be wrong but do let me know.

marmelroy commented 8 years ago

Hi @Dershowitz011, thanks for taking the time to do this but I'm afraid this is too simplistic an approach.

The final solution needs to have the same API as Apple (i.e. preview actions defined in the target view controller), interact with the native peek and pop if available (requires swizzling) and allow the presentation of nested groups of actions (and even nested groups of nested actions).

marmelroy commented 8 years ago

I'm going to close this pull request and will make my preview actions branch public once I define the basic API (sometime next week).