marmelroy / PeekPop

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

Show full view controller in the preview #15

Open hansstefan opened 8 years ago

hansstefan commented 8 years ago

Currently view controller is cropped to the size of imageContainer (becouse it has a larger frame). My proposal is to set the padding for the preview just before commit, imageViewFrame to match the final targetPreviewView size, and in animateProgress just play with scale transforms.

After this the preview looks more like the original one. peekpop_better_scaling

marmelroy commented 8 years ago

Thanks @hansstefan but I'm not so sure this is the best approach. Need to play with it a bit more.

narlei commented 7 years ago

Please merge this!