This is my setup: I have a UIScrollView with a leading, top, trial edge set to 0. Inside this I add a UIStackView with these restrictions:
stackView.centerYAnchor.constraintEqualToAnchor(selectedContactsScrollView.centerYAnchor).active = true stackView.leadingAnchor.constraintEqualToAnchor(selectedContactsScrollView.leadingAnchor).active = true
Inside the stack view, I add some views.
My problem is that due to limitations, the first view added to the stack view will also have a leading edge = 0.
How can I add some additions to the first view? Without setting scroll view restrictions.
ios swift uiscrollview uistackview
Kobe Sep 13 '15 at 16:29 2015-09-13 16:29
source share