public static UIView VerticalFlow(this UIView containerView, params UIView[] views) { if (views == null) { throw new ArgumentNullException(nameof(views)); } if (views.Length == 0) { throw new ArgumentException("views must contains at least one element", nameof(views)); } containerView.AnchorTop(views[0]); containerView.AnchorBottom(views[views.Length - 1]); for (int i = 1; i < views.Length; ++i) { containerView.VerticalSpace(views[i - 1], views[i]); } return(containerView); }