<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="">Hi Tarun,<div class=""><br class=""></div><div class="">What were you envisioning the value of these would be on devices with no screen? This seems like a proposal more suited to a UI framework.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>David</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 3, 2015, at 6:34 PM, Tarun Tyagi &lt;<a href="mailto:taruntyagi697@gmail.com" class="">taruntyagi697@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Hi Guys</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">I would like to propose a small addition. Please have a look at following and let me know your thoughts -</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Proposal : Introduction of System Defined UI Variables - ScreenSize, IsPad.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Motivation : All of us know that we have a pretty good set of methods that can provide us this information. UIScreen is there to provide this. But when the app supports autorotation, in landscape, it's width becomes height and vice-versa, leaving developer to figure out what the current width and height is.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">This forces developer to write some lines of unnecessary code every time an app starts supporting autorotation. If we had system defined variables, we could easily rely on them, regardless of current orientation.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Use Case : When app receives an autorotation event, we need to perform changes to our UI accordingly where it needs these ScreenSize(updated) &amp; IsPad variables.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Note : Everybody is aware that -</span></div><ol class="ol1" style="list-style-type: decimal;"><li class="li1" style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);"><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Autolayout takes care of the most issues down this line.</span></li><li class="li1" style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);"><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Calculations(on mere change of orientation) are rarely needed when you correctly use Autolayout.</span></li></ol><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">But we can never rule out the possibility. A system defined variable comes to quick rescue.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Does it go along Swift's Evolution?</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Obviously, a short and smart addition to developer toolkit.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Does it break any existing code?</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Absolutely No.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Advantages : A lot of unnecessary code can be abstracted from user providing a clean interface that facilitates the needed info (updated to current orientation) using a reliable system variable.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Has it been considered before?</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Yes, revised autorotation approach (Adaptive)</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"><br class=""></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator)</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"><br class=""></span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">is a place to look at. Yes, it specifically handles the use case that I described above. But does it eliminate the need of ScreenSize? Not Completely.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">It gets along with a super smart language Swift's evolution direction and should be welcomed by most of the developers.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Let me know your thoughts.</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69); min-height: 20.3px;" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;"></span><br class=""></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 17px; line-height: normal; font-family: '.SF UI Text'; color: rgb(69, 69, 69);" class=""><span class="s1" style="font-family: '.SFUIText-Regular'; font-weight: normal; font-style: normal; font-size: 17pt;">Thanks!</span></div></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Tarun.</div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=aEV7ctwDx5JMbO5IT0R-2F-2Fi-2FIc4mR8uN1H-2FRPAs6LeFdMs2rXQwCWfadv833LOzzOT-2BBDk5D3jadmMgcD5RcwSbhMyDf61Yb3o0DY6R6o3k-2BJr3C8kNMzZ3abZj2RPNAJ13JTc7H4-2BHvixQ3c-2BQXzLATJ20cC1QW491OFOwsiGzspHojUOdRx131yPJ-2Fn-2FkSJH3yWxX-2BV06kON0Wg3O3HeYc-2FFAC2HkEMF41LtMvvEwo-3D" alt="" width="1" height="1" border="0" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; height: 1px !important; width: 1px !important; border-width: 0px !important; margin: 0px !important; padding: 0px !important;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><span class="Apple-converted-space">&nbsp;</span>_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">swift-evolution mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:swift-evolution@swift.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">swift-evolution@swift.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div><br class=""></div></body></html>