Xcode 14 工作正常,但在 Xcode 15 中停止工作。
我尝试使用 Xcode 15 预览版、.sizeThatFits 和 .fixed
https://i.stack.imgur.com/2DhEl.gif
#Preview {
AddRegionView()
.previewLayout(.fixed(width: 100, height: 100))
// .previewLayout(.sizeThatFits)
}
Run Code Online (Sandbox Code Playgroud)