mamaral / Neon

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

AsyncDisplayKit #8

Closed zdnk closed 9 years ago

zdnk commented 9 years ago

I saw in some issue in Facebooks ASDK that someone wanted to use Neon with ASDK. They told him it would be difficult to implement but I think its as easy as

extension ASDisplayNode : Frameable, Anchorable, Alignable, Groupable {
    public var superFrame: CGRect {
        guard let supernode = supernode else {
            return CGRectZero
        }

        return supernode.frame
    }
}

Isn't it?

wieseljonas commented 9 years ago

So Neon doesn't use autolayout?

mamaral commented 9 years ago

@wieseljonas No, it doesn't. Feel free to dig into the code, it's fairly simple.

wieseljonas commented 9 years ago

Boy @mamaral I'm in love with Neon :+1:

mamaral commented 9 years ago

Thanks @wieseljonas!! :) Hopefully will be making improvements and updates soon!