<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="">These are inherently cross-platform concepts that can be represented both as literals (like the current color, file, and image) or as Swift-specific types, allowing the realization details to be pushed to platforms (macOS, iOS, common linux libraries).<div class=""><br class=""></div><div class="">Some ideas about literals here: <a href="https://gist.github.com/erica/c92f6ab115af89d5c4b9161487df6a3c" class="">https://gist.github.com/erica/c92f6ab115af89d5c4b9161487df6a3c</a></div><div class="">Some ideas about types and functionality for core graphics here: <a href="https://github.com/erica/SwiftGeometry/tree/master/Sources" class="">https://github.com/erica/SwiftGeometry/tree/master/Sources</a></div><div class=""><br class=""></div><div class="">If this idea has traction, it probably needs to be a separate development list or working group.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""><div class=""><br class=""></div><div class="">On Jun 1, 2017, at 5:33 AM, Jonathan Hull via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><div class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I am not suggesting open sourcing UIKit or Cocoa (or any platform specific UI code). I am suggesting creating a very small open source swift-corelib that sits on top of foundation, and adds basic visual concepts like Color, Image, AttributedText, and (hat tip to T.J.) BezierPaths. Things where the concepts themselves are completely cross-platform, and they really should be in foundation, except that they are visual concepts, and thus got packaged with the whole platform framework for historical reasons.<div class=""><br class=""></div><div class="">Thanks,</div><div class="">Jon<br class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 1, 2017, at 2:53 AM, Alex Blewitt <<a href="mailto:alblue@apple.com" class="">alblue@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">On 1 Jun 2017, at 09:57, Jonathan Hull <<a href="mailto:jhull@gbis.com" class="">jhull@gbis.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I could be wrong, but my understanding is that Foundation is being open sourced as well, and distributed with Swift across various platforms.<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">It is already open source; the source code for the Swift/Linux port is here:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/apple/swift-corelibs-foundation" class="">https://github.com/apple/swift-corelibs-foundation</a></div><div class=""><br class=""></div>However, Foundation has never contained any UI code, which on macOS is in the Cocoa framework and on iOS in the UIKit framework. These are both Apple frameworks, which you can discuss on the Apple mailing lists. To find the appropriate one, you can consult <a href="https://lists.apple.com/mailman/listinfo" class="">https://lists.apple.com/mailman/listinfo</a> - I would suggest the cocoa-dev mailing list.</div><div class=""><br class=""></div><div class="">Alex</div><br class=""></div></div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>