[swift-evolution] [Proposal]: Rectangles and other common structures.
brent at architechies.com
Wed Jan 6 00:10:24 CST 2016
> 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.
My main thought is that, although I use these types in my iOS and Mac apps all the time, I think I've used a rectangle type in web development maybe once (when I was generating images). Swift is currently used mainly for GUI programming, but most of the domains it's expanding into are ones where it doesn't need those types.
More information about the swift-evolution