via h&ps:/
/www.smashingmagazine.com/2011/05/two-cats-in-a-sack-designer-developer-discord/
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
Allow Designers To
Express Their Intent
In A Way Which
Shows Up In Code
Slide 23
Slide 23 text
Naming Things Consistently
across design and development processes
Slide 24
Slide 24 text
Thing iOS Thing Android Thing
Color UIColor R.color
Non-editable Text UILabel TextView
Short Text Input UITextField EditText
Long Text Input UITextView EditText
Bu9on UIButton Button
Top Naviga;on UINavigationBar Toolbar
Slide 25
Slide 25 text
Thing iOS Thing Android Thing
Color UIColor R.color
Non-editable Text UILabel TextView
Short Text Input UITextField EditText
Long Text Input UITextView EditText
Bu3on UIButton Button
Top Naviga8on UINavigationBar Toolbar
Slide 26
Slide 26 text
Thing iOS Thing Android Thing
Color UIColor R.color
Non-editable Text UILabel TextView
Short Text Input UITextField EditText
Long Text Input UITextView EditText
Bu7on UIButton Button
Top Naviga:on UINavigationBar Toolbar
Slide 27
Slide 27 text
Name From Designer
Corve&e
Tangerine
Canary
Kale
Ocean
Violet
Slide 28
Slide 28 text
Name From Designer iOS Var Name Android Res Name
Corve&e darkRed R.color.red
Tangerine orange R.color.orange
Canary mutedYellow R.color.pee
Kale green R.color.lt_green
Ocean navyBlue R.color.ocean
Violet purpleDrank R.color.go_u_nu
Slide 29
Slide 29 text
Name From Designer iOS Var Name Android Res Name
Corve&e corvette R.color.corvette
Tangerine tangerine R.color.tangerine
Canary canary R.color.canary
Kale kale R.color.kale
Ocean ocean R.color.ocean
Violet violet R.color.violet
Slide 30
Slide 30 text
Name From Designer iOS Class Name Android Style Name
Headline Text EXMHeadlineLabel HeadlineTextStyle
Sub-Head Text EXMSubHeadLabel SubHeadTextStyle
Body Text EXMBodyLabel BodyTextStyle
Cap5on Text EXMCaptionLabel CaptionTextStyle
Warning Text EXMWarningText WarningTextStyle
Fine Print Text EXMFinePrintText FinePrintTextStyle
Slide 31
Slide 31 text
Name From Designer iOS Class Name Android Style Name
Primary Call To Ac.on Bu2on EXMPrimaryCTAButton PrimaryCTAButtonStyle
Secondary Call To Ac.on Bu2on EXMSecondaryCTAButton SecondaryCTAButtonStyle
Transac.onal Bu2on EXMTransactionalButton TransactionalButtonStyle
Destruc.veBu2on EXMDestructiveButton DestructiveButtonStyle
Edit Bu2on EXMEditButton EditButtonStyle
Checkbox Bu2on EXMCheckboxButton CheckboxButtonStyle
Radio Bu2on EXMRadioButton RadioButtonStyle
Giant Bu2on EXMGiantButton GiantButtonStyle
Super-Giant Bu2on EXMSuperGiantButton SuperGiantButtonStyle
Slide 32
Slide 32 text
via h&ps:/
/www.flickr.com/photos/designmilk/8552219138
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
Automa'cally Generate Code
Based on the Designer's Inten1ons
Slide 35
Slide 35 text
Get designers to use a
specified format
Slide 36
Slide 36 text
Get designers to use a
specified format*
* This is a lot easier said than done
Slide 37
Slide 37 text
No content
Slide 38
Slide 38 text
No content
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
Underlying values change
seamlessly
Slide 42
Slide 42 text
Name changes break
obviously
Slide 43
Slide 43 text
No content
Slide 44
Slide 44 text
No content
Slide 45
Slide 45 text
No content
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
Building a Framework
Slide 48
Slide 48 text
No content
Slide 49
Slide 49 text
Advantages
of UI Frameworks
Slide 50
Slide 50 text
Separa&on
of concerns
Slide 51
Slide 51 text
Reusability
across mul*ple apps
Slide 52
Slide 52 text
Reusability
across mul*ple extensions
Slide 53
Slide 53 text
No content
Slide 54
Slide 54 text
Snapshot Tes%ng
Slide 55
Slide 55 text
Limita&ons
of UI Frameworks
Slide 56
Slide 56 text
@IBDesignable?
Slide 57
Slide 57 text
No content
Slide 58
Slide 58 text
Separa&on
of concerns
Slide 59
Slide 59 text
Separa&on
⚔
of concerns
Slide 60
Slide 60 text
No content
Slide 61
Slide 61 text
No content
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
No content
Slide 64
Slide 64 text
No content
Slide 65
Slide 65 text
No content
Slide 66
Slide 66 text
No content
Slide 67
Slide 67 text
No content
Slide 68
Slide 68 text
No content
Slide 69
Slide 69 text
No content
Slide 70
Slide 70 text
No content
Slide 71
Slide 71 text
No content
Slide 72
Slide 72 text
Selling Your Designers
on this cockamamie brilliant idea
Slide 73
Slide 73 text
via h&p:/
/www.cultofmac.com/388474/apple-pencil-versus-wacom-cin
Slide 74
Slide 74 text
No content
Slide 75
Slide 75 text
No content
Slide 76
Slide 76 text
No content
Slide 77
Slide 77 text
No content
Slide 78
Slide 78 text
No content
Slide 79
Slide 79 text
No content
Slide 80
Slide 80 text
No content
Slide 81
Slide 81 text
No content
Slide 82
Slide 82 text
No content
Slide 83
Slide 83 text
Distribu(ng Playground Books
• Git
• Email
• AirDrop
• Dropbox
• Con2nuous Integra2on uploading to S3 or an internal site
Slide 84
Slide 84 text
Distribu(ng Playground Books
• Git*
• Email
• AirDrop
• Dropbox*
• Con3nuous Integra3on uploading to S3 or an internal site*
* - In theory
Slide 85
Slide 85 text
No content
Slide 86
Slide 86 text
(˽°□°҂˽Ɨ ˍʓˍ
Slide 87
Slide 87 text
No content
Slide 88
Slide 88 text
No content
Slide 89
Slide 89 text
No content
Slide 90
Slide 90 text
Re-incorpora+ng
design changes
Slide 91
Slide 91 text
Working collabora'vely
vs.
Working asynchronously
Slide 92
Slide 92 text
Con rency cur
Slide 93
Slide 93 text
Concurrency
Slide 94
Slide 94 text
No content
Slide 95
Slide 95 text
No content
Slide 96
Slide 96 text
Playgrounds With Designers: Easy Mode
• Hand off via email, AirDrop, or synced folder
• Use a single, ginormous playground file**
• Create basic elements but don't include anything complicated
• Copy and paste files into the sources folder
** May be REAL slow
Slide 97
Slide 97 text
Playgrounds With Designers: Advanced Mode
• Automa(cally generate every (me there's a build of the
applica(on
• Copy source files of framework into Sources folder in playground
using a script
• Use a mul(-page playground to separate things
• Let designers download from a consistent place
Slide 98
Slide 98 text
Playgrounds With Designers: Expert Mode
• #SquadGoals
• Automa(cally generate only when changes have taken place in
the UI framework
• Create a Playground Book that allows designers to muck about
with stuff on their iPad
• Automa(cally upload so the designers can get it on their iPad
(iCloud? Dropbox?)
Slide 99
Slide 99 text
A Few Par)ng Recommenda)ons
• Start small.
Slide 100
Slide 100 text
A Few Par)ng Recommenda)ons
• Start small.
• Colors, fonts, UILabel subclasses
Slide 101
Slide 101 text
A Few Par)ng Recommenda)ons
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding
Slide 102
Slide 102 text
A Few Par)ng Recommenda)ons
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding,
• UIButtons, UITextFields, and other state-driven UI
Slide 103
Slide 103 text
A Few Par)ng Recommenda)ons
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding,
• UIButtons, UITextFields, and other state-driven UI
• Custom Views And AnimaBons
Slide 104
Slide 104 text
Build the
Building Blocks
via h&ps:/
/www.flickr.com/photos/designmilk/8552219138
Slide 105
Slide 105 text
Links!
• TrueColors app and the CyndiLauper parser: h-ps:/
/
github.com/vokal/TrueColors-macOS
• Sourcery: h-ps:/
/github.com/krzysztofzablocki/Sourcery
• Embedding frameworks in an .xcworkspace: h-ps:/
/
useyourloaf.com/blog/adding-playgrounds-to-xcode-projects/
• Playground Books: h-ps:/
/ashfurrow.com/blog/swiH-
playground-books/