[swift-evolution] [Proposal]: Rectangles and other common structures.

Félix Cloutier felixcca at yahoo.ca
Wed Jan 6 11:21:19 CST 2016


Do you use them a lot outside of a Cocoa/UIKit context?

Félix

> Le 6 janv. 2016 à 00:08:35, John Randolph via swift-evolution <swift-evolution at swift.org> a écrit :
> 
> Sorry if this is a repeat, but I’d like to suggest promoting certain structs from Foundation to the Swift standard library.
> 
> As an OS X and iOS developer, it sometimes seems that I work with [GG|NS]Point, [GG|NS]Rect, and [GG|NS]Size almost as much as I use Float or String.  I’d love to see Swift’s standard library include Rect, Point, and Size types, with bridging to make them “just work” with any UIKit or AppKit API that expects their NS or CG equivalents.  Maybe also typealias Frame and Bounds to Rect while we’re at it.
> 
> Thoughts?
> 
> -jcr
> 
> _______________________________________________
> 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/20160106/cfc1b827/attachment.html>


More information about the swift-evolution mailing list