John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

Sliding Status Bar Animation #514

Open thomasbaldwin opened 9 years ago

thomasbaldwin commented 9 years ago

First of all, thanks for all the awesome work you guys have put in!

I'd really like to see something like what GroupMe has done in their app. The entire status bar is animated to the side, together with the navigation controller.

image1 1

Also, another app, Interesting, has done the same thing:

Working web based example: http://flyosity.com/interesting/

Would it be possible to do this with SWRevealViewController?

iDevelopper commented 9 years ago

Something like that? But you have to explore more...

    UIView *statusBarView = [[UIApplication sharedApplication] valueForKey:[@[@"status", @"Bar"] componentsJoinedByString:@""]];
    statusBarView.transform = CGAffineTransformMakeTranslation(self.revealViewController.rearViewRevealWidth, 0.0f);