Re: UIStackView: Variable Spacing

2016-07-07 Thread Fritz Anderson
Confirming that your concern is now Auto Layout overhead? --- Long, long ago, when there were no iPads or Auto Layout (2009?), the scrolling-performance session at WWDC said if your cells had nontrivial subview trees, and the table was stuttering, bite the bullet and start aggregating subview

Re: UIStackView: Variable Spacing

2016-07-06 Thread Daniel Stenmark
It’s not so much that adding a single dummy view wrecks us. Our cell layout has a lot going on, with a fair amount of variable spacing and multiple views often being hidden and swapped out. The UIStackView scrolling performance slog I’m seeing is just sum of all that. Sigh, oh well. I guess

Re: UIStackView: Variable Spacing

2016-07-06 Thread Roland King
> On 7 Jul 2016, at 04:37, Daniel Stenmark wrote: > > What’s the best way to achieve variable spacing between children of a > UIStackView? I know that a popular approach is to add an empty dummy view to > act as padding, but this is being used in a UITableView cell,

Re: UIStackView: Variable Spacing

2016-07-06 Thread Daniel Stenmark
No, adding additional horizontal or vertical spacing constraints to the UIStackView’s arranged subviews results in conflicts with UIStackView's implicit constraints. Dan On Jul 6, 2016, at 3:52 PM, Quincey Morris

Re: UIStackView: Variable Spacing

2016-07-06 Thread Quincey Morris
On Jul 6, 2016, at 15:41 , Daniel Stenmark wrote: > > This would require my UIStackView’s children to have children of their own, > which just means even more layout constraints to resolve at scroll-time. Can’t you set constraints between the stack view children

Re: UIStackView: Variable Spacing

2016-07-06 Thread Daniel Stenmark
This would require my UIStackView’s children to have children of their own, which just means even more layout constraints to resolve at scroll-time. Dan On Jul 6, 2016, at 3:34 PM, Quincey Morris > wrote: On Jul

Re: UIStackView: Variable Spacing

2016-07-06 Thread Quincey Morris
On Jul 6, 2016, at 13:37 , Daniel Stenmark wrote: > > What’s the best way to achieve variable spacing between children of a > UIStackView? I’ve had success placing leading/trailing/top/bottom constraints on the child view, or on components within the child view, to

UIStackView: Variable Spacing

2016-07-06 Thread Daniel Stenmark
What’s the best way to achieve variable spacing between children of a UIStackView? I know that a popular approach is to add an empty dummy view to act as padding, but this is being used in a UITableView cell, so scrolling performance is critical and the implicit constraints created by adding a