BottleRocketStudios / iOS-UtiliKit

All the things you're tired of writing.
Apache License 2.0
23 stars 13 forks source link

Add more documentation around preferred ContainerViewController usage #59

Closed tylermilner closed 4 years ago

tylermilner commented 5 years ago

What's the "right" way to use ContainerViewController? Should you subclass it or should you use it with composition? Are there benefits doing it one way vs the other? I think I've usually seen it used with composition since subclassing requires you to hook into the view lifecycle methods at just the right moment to populate the managedChildren property. We should improve our documentation with the tradeoffs of each approach, and make our preferred approach known.

wmcginty commented 4 years ago

Transferred to https://github.com/BottleRocketStudios/iOS-Container/issues/4