<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class="">On Jan 9, 2017, at 11:54 AM, Tim Shadel via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""></blockquote><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><pre class="" style="font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(241, 240, 240);"><span class="" style="color: rgb(64, 0, 0); font-weight: bold;">enum</span> OneOnOneField<span class="" style="color: rgb(128, 96, 48);">:</span> Int <span class="" style="color: rgb(128, 96, 48);">{</span>
var title<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 0, 0);">"</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var placeholder<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 0, 0);">"</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var image<span class="" style="color: rgb(128, 96, 48);">:</span> UIImage <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> UIImage<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(64, 0, 0); font-weight: bold;">case </span><span class="" style="color: rgb(0, 125, 69);">agenda </span><span class="" style="color: rgb(128, 96, 48);">{</span><span class="" style="color: rgb(0, 125, 69);"></span>
<span class="" style="color: rgb(0, 125, 69);"> var title</span><span class="" style="color: rgb(227, 74, 220);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> NSLocalizedString<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Agenda</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">,</span> comment<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">One on one field header</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var placeholder<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> NSLocalizedString<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Add an agenda</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">,</span> comment<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">One on one field placeholder</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var image<span class="" style="color: rgb(128, 96, 48);">:</span> UIImage <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> <span class="" style="color: rgb(128, 96, 48);">#imageLiteral</span><span class="" style="color: rgb(128, 96, 48);">(</span>resourceName<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Agenda-Small</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(64, 0, 0); font-weight: bold;">case </span><span class="" style="color: rgb(0, 125, 69);">summary </span><span class="" style="color: rgb(128, 96, 48);">{</span><span class="" style="color: rgb(0, 125, 69);"></span>
<span class="" style="color: rgb(0, 125, 69);"> var title</span><span class="" style="color: rgb(227, 74, 220);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> NSLocalizedString<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Summary</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">,</span> comment<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">One on one field header</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var placeholder<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> NSLocalizedString<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Add a summary</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">,</span> comment<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">One on one field placeholder</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
var image<span class="" style="color: rgb(128, 96, 48);">:</span> UIImage <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> <span class="" style="color: rgb(128, 96, 48);">#imageLiteral</span><span class="" style="color: rgb(128, 96, 48);">(</span>resourceName<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Summary-Small</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(64, 0, 0); font-weight: bold;">case </span><span class="" style="color: rgb(0, 125, 69);">date</span>
<span class="" style="color: rgb(0, 125, 69);"></span>
<span class="" style="color: rgb(0, 125, 69);"> </span><span class="" style="color: rgb(64, 0, 0); font-weight: bold;">case</span><span class="" style="color: rgb(0, 125, 69);"> notes </span><span class="" style="color: rgb(128, 96, 48);">{</span><span class="" style="color: rgb(0, 125, 69);"></span>
<span class="" style="color: rgb(0, 125, 69);"> var title</span><span class="" style="color: rgb(227, 74, 220);">:</span> <span class="" style="color: rgb(128, 0, 64);">String</span> <span class="" style="color: rgb(128, 96, 48);">{</span> <span class="" style="color: rgb(64, 0, 0); font-weight: bold;">return</span> NSLocalizedString<span class="" style="color: rgb(128, 96, 48);">(</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Personal Notes</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">,</span> comment<span class="" style="color: rgb(128, 96, 48);">:</span> <span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(230, 0, 0);">Title for personal notes screen</span><span class="" style="color: rgb(128, 0, 0);">"</span><span class="" style="color: rgb(128, 96, 48);">)</span> <span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(128, 96, 48);">}</span>
<span class="" style="color: rgb(128, 96, 48);">}</span></pre></div></blockquote></div><div class="">A thousand +1s from me on this. This would make enums so much more pleasant to work with.</div><div class=""><br class=""></div><div class="">Charles</div><div class=""><br class=""></div></body></html>