自动改变结构? (iOS/Storyboard)

Change the structure automatically? (iOS/Storyboard)

要更好地了解我的意思,请查看此屏幕截图here. Let's say the UIView with the number 3 are removed. Is it possible to tell the storyboard or ViewController it should after the remove put the UIView number 4 and 5 higher (the y-position), so that it looks like this screenshot?

很抱歉提出这个非常基本的问题,但我不知道如何开始,或者如果它有一个特殊的名称,google。

这份工作最适合垂直 UIStackView ,作为设置

self.view3.isHidden = true 

会自动折叠视图,但如果项目数量多于单个设备高度,则必须将 stackView 嵌入 UIScrollView 或使用 UITableView相反