设计网站公司为什么都在上海,农产品网络营销方式,外贸自主建站平台,自己买服务器可以搭建网站吗Pet*_*ter 8 嗯#xff0c;我会的。在断断续续地挣扎了几个星期之后#xff0c;在我问这个问题一个小时后#xff0c;我似乎解决了它#xff01;只需将第二个 HSplitView 的 layoutPriority 设置为 1#xff0c;并将中心视图也设置为 1。当你想到它时是有道理的#xff1…Pet*_*ter 8 嗯我会的。在断断续续地挣扎了几个星期之后在我问这个问题一个小时后我似乎解决了它只需将第二个 HSplitView 的 layoutPriority 设置为 1并将中心视图也设置为 1。当你想到它时是有道理的 struct ContentView: View {var body: some View {GeometryReader{geometry inHSplitView(){Rectangle().foregroundColor(.red).frame(minWidth:200, idealWidth: 200, maxWidth: .infinity)HSplitView(){Rectangle().foregroundColor(.black).layoutPriority(1)Rectangle().foregroundColor(.green).frame(minWidth:200, idealWidth: 200, maxWidth: .infinity)}.layoutPriority(1)}.frame(width: geometry.size.width, height: geometry.size.height)}}
}很简单。喜欢 SwiftUI