If anyone would like to have iOS 7 style scene transitions in composer, here are a few lines of code that will add two new transition types to achieve this.
Just add the following code to your main.lua and you’ll have “iosSlideLeft” and “iosSlideRight” available.
You can use them anywhere as they’re added to the composer library.
Keep in mind that this doesn’t bring the iOS 7 swipe behavior to composer, however it’s at least better than the standard transitions if you want to achieve a more native look.
Example: iosSlideLeft would be used after selecting an item in a tableView, and iosSlideRight would be used when pressing the Back button.
You can play around with the different settings to fine-tune the transitions and scene positions if you’d like .
composer = require("composer") composer.effectList["iosSlideLeft"] = { sceneAbove = true, concurrent = true, to = { xStart = display.contentWidth, yStart = 0, xEnd = 0, yEnd = 0, transition = easing.outQuad }, from = { xStart = 0, yStart = 0, xEnd = -display.contentWidth \* 0.3, yEnd = 0, transition = easing.outQuad } } composer.effectList["iosSlideRight"] = { sceneAbove = false, concurrent = true, to = { xStart = -display.contentWidth \* 0.3, yStart = 0, xEnd = 0, yEnd = 0, transition = easing.outQuad }, from = { xStart = 0, yStart = 0, xEnd = display.contentWidth, yEnd = 0, transition = easing.outQuad } }