Skip to content

Instantly share code, notes, and snippets.

@lynaghk
Forked from edamamegreen/SketchSystems.spec
Last active May 29, 2018 16:35
Show Gist options
  • Save lynaghk/eb2c9186fe5a6d01982285b506ce7646 to your computer and use it in GitHub Desktop.
Save lynaghk/eb2c9186fe5a6d01982285b506ce7646 to your computer and use it in GitHub Desktop.
iPhone 5 iOS 10*
iPhone 5 iOS 10
Screen Off
home button -> Notifications
top button -> Notifications
Locked
top button -> Screen Off
Notifications
home button -> Password Screen
swipe left-to-right -> Message Center
Message Center
home button -> Password Screen
swipe right-to-left -> Message Center
Password Screen
Camera
home button -> Notifications
function image_for_state_name(state_name) {
var path = "https://sketch.systems/tutorials/img-prototype/";
return $("img", {src: path + state_name + ".jpeg"})
}
function render(model){
var active_state = model.active_states[0];
return image_for_state_name(active_state.name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment