Last active
December 13, 2015 18:27
-
-
Save TimonVS/bf6af6e3f21483addf8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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