Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Boost your App Dev using Sketch

Boost your App Dev using Sketch

Talked at Mobile Act NAGOYA #9
https://mobileact.connpass.com/event/77509/

griffin-stewie

February 16, 2018
Tweet

More Decks by griffin-stewie

Other Decks in Technology

Transcript

  1. Boost your App Dev using
    Sketch
    @griffin_stewie

    View full-size slide

  2. @griffin_stewie
    from Osaka

    View full-size slide

  3. Have you tried?

    View full-size slide

  4. Trigger
    • To make efficient collaboration between
    Engineers and Designers.
    • Less mistakes (human errors)
    • To systemize

    View full-size slide

  5. What’s going on?

    View full-size slide

  6. Sketch Plugin
    • Bundle
    • It includes codes and manifest.json

    View full-size slide

  7. manifest.json
    • Describes plugin details
    • Information about plugin
    • Menu contents
    • Action triggers

    View full-size slide

  8. Code
    • CocoaScript
    • Looks like a JavaScript, but you can call
    Cocoa’s API
    • You can use Obj-C style 

    `[[NSArray alloc] init]`

    View full-size slide

  9. Code
    • You can use Transcompiler
    • JavaScript ES6
    • Coffee Script

    View full-size slide

  10. Framework
    • You can use your Framework
    • You can write most part of plugin useing Obj-
    C
    • Use CocoaScript to load your framework as
    entry point
    • I don’t recommend Swift, suite Dynamic Lang

    View full-size slide

  11. Recommends
    • “skpm” helps us to scaffold contents
    • Sketch gives us `Run Script…` feature, it is
    like a PlayGround

    View full-size slide

  12. Easy to do / Hard to do

    View full-size slide

  13. Easy to do
    • Simply run from Menu
    • Without Input UI
    • Just write manifest.json
    • Supported by Public API
    • Easily imagine how it work on https://
    github.com/abynim/Sketch-Headers

    View full-size slide

  14. ΍Δͷ͕େมͳ͜ͱ
    • GUI ͕ඞཁͳ΋ͷ
    • Craft ϓϥάΠϯ͕ఏڙ͍ͯ͠ΔΠϯεϖΫλ
    ͷԣͷॎπʔϧόʔΈ͍ͨͳͷͱ͔
    • طଘ UI ʹհೖ͢Δ΋ͷ

    View full-size slide

  15. What I learned

    View full-size slide

  16. What I learned
    • Can’t read references without how to use
    Sketch
    • Common pattern
    • Easy to develop plugins if I could imagine how
    it works

    View full-size slide

  17. Wrap up
    • Little bit wired
    • Like a hacking
    • Hacking is fun

    View full-size slide

  18. Wanted!
    • Story about how collaborate Engineer and
    Designer
    • Useful Sketch Plugins

    View full-size slide

  19. Links
    • Sketch Developer — Extending Sketch
    • http://developer.sketchapp.com/
    • Sketch Developers
    • A discussion area for developers working with
    the Sketch Platform
    • http://sketchplugins.com/

    View full-size slide