Skip to content

Instantly share code, notes, and snippets.

@TimonVS
Last active December 13, 2015 18:27
Show Gist options
  • Save TimonVS/bf6af6e3f21483addf8e to your computer and use it in GitHub Desktop.
Save TimonVS/bf6af6e3f21483addf8e to your computer and use it in GitHub Desktop.
sketch = Framer.Importer.load("imported/onboarding-tour")
artboards = [sketch.Step_one, sketch.Step_two, sketch.Step_three]
page = new PageComponent
width: Screen.width
height: Screen.height
scrollVertical: false
# Kopieer de done knop uit de eerste artboard
done = artboards[0].subLayersByName("Done_Button")[0].copy()
for artboard, index in artboards
artboard.visible = true
# Verwijder indicators en done button uit de layer
artboard.subLayersByName("Navigation")[0].destroy()
artboard.subLayersByName("Done_Button")[0].destroy()
page.addPage(artboard, "right")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment