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. #44

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

mamaral commented 8 years ago

Thank you!

nhojb commented 8 years ago

Great. Thanks for accepting this change!