[swift-evolution] VisualFoundation Framework

Erica Sadun erica at ericasadun.com
Thu Jun 1 11:57:52 CDT 2017

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).

Some ideas about literals here: https://gist.github.com/erica/c92f6ab115af89d5c4b9161487df6a3c <https://gist.github.com/erica/c92f6ab115af89d5c4b9161487df6a3c>
Some ideas about types and functionality for core graphics here: https://github.com/erica/SwiftGeometry/tree/master/Sources <https://github.com/erica/SwiftGeometry/tree/master/Sources>

If this idea has traction, it probably needs to be a separate development list or working group.

-- E

On Jun 1, 2017, at 5:33 AM, Jonathan Hull via swift-evolution <swift-evolution at swift.org> wrote:
> 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.
> Thanks,
> Jon
>> On Jun 1, 2017, at 2:53 AM, Alex Blewitt <alblue at apple.com <mailto:alblue at apple.com>> wrote:
>>> On 1 Jun 2017, at 09:57, Jonathan Hull <jhull at gbis.com <mailto:jhull at gbis.com>> wrote:
>>> I could be wrong, but my understanding is that Foundation is being open sourced as well, and distributed with Swift across various platforms.
>> It is already open source; the source code for the Swift/Linux port is here:
>> https://github.com/apple/swift-corelibs-foundation <https://github.com/apple/swift-corelibs-foundation>
>> 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 https://lists.apple.com/mailman/listinfo <https://lists.apple.com/mailman/listinfo> - I would suggest the cocoa-dev mailing list.
>> Alex
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170601/28811854/attachment.html>

More information about the swift-evolution mailing list