via https://www.smashingmagazine.com/2011/05/two-cats-in-a-sack-designer-developer-discord/
Slide 21
Slide 21 text
No content
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
Allow Designers To Express Their Intent
In A Way Which Shows Up In Code
Slide 24
Slide 24 text
Naming Things Consistently
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
Button UIButton Button
Top Navigation 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
Button UIButton Button
Top Navigation UINavigationBar Toolbar
Slide 27
Slide 27 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
Button UIButton Button
Top Navigation UINavigationBar Toolbar
Slide 28
Slide 28 text
Name From Designer
Corvette
Tangerine
Canary
Palm Tree
Ocean
Violet
Slide 29
Slide 29 text
Name From Designer iOS Var Name Android Name
Corvette exm_darkRed R.color.red
Tangerine exm_orange R.color.orange
Canary exm_mutedYellow R.color.pee
Palm Tree exm_green R.color.lt_green
Ocean exm_navyBlue R.color.ocean
Violet exm_purpleDrank R.color.go_u_nu
Slide 30
Slide 30 text
Name From Designer iOS Var Name Android Name
Corvette exm_corvette R.color.corvette
Tangerine exm_tangerine R.color.tangerine
Canary exm_canary R.color.canary
Palm Tree exm_palmTree R.color.palm_tree
Ocean exm_ocean R.color.ocean
Violet exm_violet R.color.violet
Slide 31
Slide 31 text
Name From Designer iOS Class Name Android Style Name
Headline Text EXMHeadlineLabel HeadlineTextStyle
Sub-Head Text EXMSubHeadLabel SubHeadTextStyle
Body Text EXMBodyLabel BodyTextStyle
Caption Text EXMCaptionLabel CaptionTextStyle
Warning Text EXMWarningText WarningTextStyle
Fine Print Text EXMFinePrintText FinePrintTextStyle
Slide 32
Slide 32 text
Name From Designer iOS Class Name Android Style Name
Primary Call To Action Button EXMPrimaryCTAButton PrimaryCTAButtonStyle
Secondary Call To Action Button EXMSecondaryCTAButton SecondaryCTAButtonStyle
Transactional Button EXMTransactionalButton TransactionalButtonStyle
DestructiveButton EXMDestructiveButton DestructiveButtonStyle
Edit Button EXMEditButton EditButtonStyle
Checkbox Button EXMCheckboxButton CheckboxButtonStyle
Radio Button EXMRadioButton RadioButtonStyle
Giant Button EXMGiantButton GiantButtonStyle
Super-Giant Button EXMSuperGiantButton SuperGiantButtonStyle
Slide 33
Slide 33 text
via https://www.flickr.com/photos/designmilk/8552219138
Slide 34
Slide 34 text
No content
Slide 35
Slide 35 text
Automatically Generate Code
Based on the Designer's Intentions
Slide 36
Slide 36 text
Get designers to use a
specified format
Slide 37
Slide 37 text
Get designers to use a
specified format*
* This is a lot easier said than done
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
No content
Slide 42
Slide 42 text
Underlying values change
seamlessly
Slide 43
Slide 43 text
Name changes break
obviously
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
No content
Slide 48
Slide 48 text
No content
Slide 49
Slide 49 text
No content
Slide 50
Slide 50 text
No content
Slide 51
Slide 51 text
No content
Slide 52
Slide 52 text
No content
Slide 53
Slide 53 text
No content
Slide 54
Slide 54 text
No content
Slide 55
Slide 55 text
No content
Slide 56
Slide 56 text
No content
Slide 57
Slide 57 text
No content
Slide 58
Slide 58 text
Selling Your Designers
on this cockamamie brilliant idea
Slide 59
Slide 59 text
via http://www.cultofmac.com/388474/apple-pencil-versus-wacom-cintiq/
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
Distributing playgrounds
• Git
• Email
• AirDrop
• Dropbox
• Continuous Integration uploading to S3 or an internal site
Slide 66
Slide 66 text
No content
Slide 67
Slide 67 text
No content
Slide 68
Slide 68 text
Re-incorporating
design changes
Slide 69
Slide 69 text
Working collaboratively
vs.
Working asynchronously
Slide 70
Slide 70 text
Building a Framework
Slide 71
Slide 71 text
No content
Slide 72
Slide 72 text
Advantages
of UI Frameworks
Slide 73
Slide 73 text
Separation
of concerns
Slide 74
Slide 74 text
Reusability
across multiple apps
Slide 75
Slide 75 text
Reusability
across multiple extensions
Slide 76
Slide 76 text
No content
Slide 77
Slide 77 text
Snapshot Testing
Slide 78
Slide 78 text
Limitations
of UI Frameworks
Slide 79
Slide 79 text
@IBDesignable?
Slide 80
Slide 80 text
No content
Slide 81
Slide 81 text
Separation
of concerns
Slide 82
Slide 82 text
Separation
⚔
of concerns
Slide 83
Slide 83 text
Con rency cur
Slide 84
Slide 84 text
Concurrency
Slide 85
Slide 85 text
No content
Slide 86
Slide 86 text
No content
Slide 87
Slide 87 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 88
Slide 88 text
Playgrounds With Designers: Advanced Mode
• Automatically generate every time there's a build of the
application
• Copy source files of framework into Sources folder in playground
using a script
• Use a multi-page playground to separate things
• Let designers download from a consistent place
Slide 89
Slide 89 text
Playgrounds With Designers: Expert Mode
• #SquadGoals
• Automatically 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
• Automatically upload so the designers can get it on their iPad
(iCloud? Dropbox?)
Slide 90
Slide 90 text
A Few Parting Recommendations
• Start small.
Slide 91
Slide 91 text
A Few Parting Recommendations
• Start small.
• Colors, fonts, UILabel subclasses
Slide 92
Slide 92 text
A Few Parting Recommendations
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding
Slide 93
Slide 93 text
A Few Parting Recommendations
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding,
• UIButtons, UITextFields, and other state-driven UI
Slide 94
Slide 94 text
A Few Parting Recommendations
• Start small.
• Colors, fonts, UILabel subclasses
• Margins, font sizes, padding,
• UIButtons, UITextFields, and other state-driven UI
• Custom Views And Animations
Slide 95
Slide 95 text
Build the
Building Blocks
via https://www.flickr.com/photos/designmilk/8552219138
Slide 96
Slide 96 text
Links!
• TrueColors app and the CyndiLauper parser: https://
github.com/vokal/TrueColors-macOS
• Sourcery: https://github.com/krzysztofzablocki/Sourcery
• Embedding frameworks in an .xcworkspace: https://
useyourloaf.com/blog/adding-playgrounds-to-xcode-projects/