Connecting other view using outlet, instead of simply adding to contentView, is ugly, not straightforward, not suitable for a public module. Layout constraints are what I'm concerned with the most. When views are added directly to my custom view in Xcode/Storyboard, it's tough to recreate the constraints when moving views out and back. I even plan to offer an API where application can animate subviews as transitioning between these two states - recreating constraints makes that impossible.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: