marlimox / AloeStackView

A simple class for laying out a collection of views with a convenient API, while leveraging the power of Auto Layout.
Apache License 2.0
2.82k stars 170 forks source link

AloeStackViewController to support child UIViewControllers as a row #53

Open richardtop opened 5 years ago

MikeGlotov commented 5 years ago

H @richardtop, I'm not the maintainer but I was able to use VCs as Aloe's children. You could try this in your VC:

    let vc = ...someVC
    addChild(vc)
    vc.didMove(toParent: self)
    stackView.addRow(vc.view)

And don't forget abot row insets. Hope this would be helpful.

richardtop commented 5 years ago

Yes, but that's not the 1st class support. The issue is about making AloeStackViewController to support child ViewControllers natively (i.e. it would do the manual work you've referenced)

apang42 commented 5 years ago

Hey @richardtop thank you for the suggestion, this sounds like a great idea, we'll look into adding support for this via AloeStackViewController in the future.