mamaral / Neon

A powerful Swift programmatic UI layout framework.
MIT License
4.58k stars 389 forks source link

Moving UIView & CALayer extensions to a separate source file. #43

Closed nhojb closed 8 years ago

nhojb commented 8 years ago

I'm using Neon in a Swift framework which implements a custom Window/View UI for OpenGL. I'd rather include Neon in my project as source code, rather than making Neon an additional dependency for clients of my framework.

The problem is that my own code defines "View", which conflicts with the typealias used in Neon to extend UIView/NSView (which I'm not using).

This change moves the UIView/NSView/CALayer extensions into a separate source file, which I can safely ignore when adding Neon to my project.

An alternative would obviously be to rename the typealias to something else ("KitView"?). But moving the extensions into a separate file seems cleaner to me.

PS: I'm loving Neon, a really elegant solution to layout :-)

nhojb commented 8 years ago

Tests failing, will re-submit shortly. My bad.