what widget to slide between scenes?

Hey,

I have two scenes. I’d like to jump from one to another by using a slide widget. I was thinking of something like the ‘slide to unlock’ bar on IOS, actually I’d like to have something exactly like that…

Is there a tool or widget like that in corona? Looking around the web I only found someone who was trying to achieve the effect by making the whole screen listen to the swipe gesture, but I’d like to have a proper widget to do it, any idea?

Thanks!

There isn’t a specific API for that, but you could build your “lock” screen and other scenes using our Composer API and swipe to change scenes.  You can also construct your scene being twice as wide as the screen and use a touch handler to manage the swipe to bring the other scene on the screen.

Just a small word of caution. I think Apple has a patent on that swipe to unlock design and action. I recall reading how protective they were against others in using similar designs. Be prepared to have your app rejected by Apple when you submit it.

Also take a look at this excellent code sample shared by Horacebury : 

http://code.coronalabs.com/code/backswipe-navigation-composer

It is a great library which you can use to implement sliding from one scene to another without using a widget etc. 

EDIT : And the discussion thread for above code sharing : 

http://forums.coronalabs.com/topic/50488-ios-7-style-swipe-navigation/

Thanks guys!!

@ksan,

Just a small word of caution. I think Apple has a patent on that swipe to unlock design and action. I recall reading how protective they were against others in using similar designs.

I didn’t think about that, I’ll take the advice… interesting reads anyway, thanks for those!

Since this would be the first app I mean to publish, I’ll keep it simple and won’t over-design it, if a nativer corona API is not available for now I’ll go with a simple button to trigger composer’s slide from side transition to scene… I think it will look good enough.

Thanks for the answers guys!

Keep it Simple is the best path you can imagine. Button to go to new scene is used by many many apps. Best of luck with your app. 

There isn’t a specific API for that, but you could build your “lock” screen and other scenes using our Composer API and swipe to change scenes.  You can also construct your scene being twice as wide as the screen and use a touch handler to manage the swipe to bring the other scene on the screen.

Just a small word of caution. I think Apple has a patent on that swipe to unlock design and action. I recall reading how protective they were against others in using similar designs. Be prepared to have your app rejected by Apple when you submit it.

Also take a look at this excellent code sample shared by Horacebury : 

http://code.coronalabs.com/code/backswipe-navigation-composer

It is a great library which you can use to implement sliding from one scene to another without using a widget etc. 

EDIT : And the discussion thread for above code sharing : 

http://forums.coronalabs.com/topic/50488-ios-7-style-swipe-navigation/

Thanks guys!!

@ksan,

Just a small word of caution. I think Apple has a patent on that swipe to unlock design and action. I recall reading how protective they were against others in using similar designs.

I didn’t think about that, I’ll take the advice… interesting reads anyway, thanks for those!

Since this would be the first app I mean to publish, I’ll keep it simple and won’t over-design it, if a nativer corona API is not available for now I’ll go with a simple button to trigger composer’s slide from side transition to scene… I think it will look good enough.

Thanks for the answers guys!

Keep it Simple is the best path you can imagine. Button to go to new scene is used by many many apps. Best of luck with your app.