<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, All:<div class=""><br class=""></div><div class="">Can someone please enlighten me as to why the first enum works as expected, giving me Melbourne, but the second gives UIModalPresentationStyle rather than fullScreen?&nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="color: #0433ff" class="">enum</span> City {</div><div style="margin: 0px; line-height: normal;" class="">&nbsp; &nbsp; <span style="color: #0433ff" class="">case</span> Melbourne, Chelyabinsk, Bursa</div><div style="margin: 0px; line-height: normal;" class="">}</div><div style="margin: 0px; line-height: normal;" class=""><span style="color: #0433ff" class="">let</span> city = <span style="color: #3495af" class="">City</span>.<span style="color: #3495af" class="">Bursa</span></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(52, 149, 175);" class="">print<span style="color: #000000" class="">(</span>city<span style="color: #000000" class="">)</span></div><div style="margin: 0px; line-height: normal; color: rgb(0, 143, 0);" class="">// prints "Melbourne"</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(0, 143, 0);" class=""><span style="color: #0433ff" class="">let</span><span style="color: #000000" class=""> cityName = </span><span style="color: #b4261a" class="">"</span><span style="color: #000000" class="">\</span><span style="color: #b4261a" class="">(</span><span style="color: #3495af" class="">city</span><span style="color: #b4261a" class="">)"</span><span style="color: #000000" class=""> &nbsp; </span>// or `let cityName = String(city)`</div><div style="margin: 0px; line-height: normal; color: rgb(0, 143, 0);" class="">// cityName contains "Melbourne"</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(0, 143, 0);" class="">// Why doesn't the following work?</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(52, 149, 175);" class=""><span style="color: #0433ff" class="">let</span><span style="color: #000000" class=""> presStyle = </span>UIModalPresentationStyle<span style="color: #000000" class="">.</span>fullScreen</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; color: rgb(0, 143, 0);" class=""><span style="color: #3495af" class="">print</span><span style="color: #000000" class="">(</span><span style="color: #3495af" class="">presStyle</span><span style="color: #000000" class="">) </span>// prints UIModalPresentationStyle</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Helvetica; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><span style="color: #0433ff" class="">let</span> presStyleName = <span style="color: #b4261a" class="">"</span>\<span style="color: #b4261a" class="">(</span><span style="color: #3495af" class="">presStyle</span><span style="color: #b4261a" class="">)"</span></div></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">I have an ugly work-around using String UIPresentationStyle tuples, but I'd rather not use it if possible.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Michael<br class=""><div class="">---------------------------------------------------------------------------</div></div><div class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; 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; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Dr. Michael P. Rogers<br class="">Associate Professor, Northwest Missouri State University<br class="">Tinkerer-in-Chief and Angel Flight Pilot<br class="">Twitter &amp; Google+: &nbsp;<a href="mailto:mprogers@mac.com" class="">mprogers@mac.com</a>; &nbsp;Skype: <a href="http://mprogersatmac.com" class="">mprogersatmac.com</a>; Facebook: mprogers<br class="">Phone: &nbsp;309-825-6454 (H); &nbsp;660-562-1551 (W)<br class=""><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; 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; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Thank you, thank you, thank you, and I'd like to thank all the little people -- Tom Thumb, Ant-Man, and, of course, all the Lilliputians -- who made this award possible ðŸ˜€</div>
</div>
<br class=""></body></html>