macOS 11.6, Xcode 13.0 (13A233), iOS 15
Looks fixed.
Given:
struct ContentView: View {
let msg = "Make sure you file a bug report and be very precise with how YOU think it should work. The Apple developers really do pay attention to feedback when they roll out a completely new project like SwiftUI."
<insert body here>
...
static var previews: some View {
ObjectImage()
.previewLayout(.fixed(width: 300, height: 300))
}
For the following simple implementations, I get:
var body: some View {
Text(msg)
.background(Color(.sRGB, white: 0.9))
.border(Color.red)
}
var body: some View {
VStack {
Text(msg)
.background(Color(.sRGB, white: 0.9))
}
.border(Color.red)
}
var body: some View {
ScrollView {
VStack {
Text(msg)
.background(Color(.sRGB, white: 0.9))
}
.border(Color.red)
}
.border(Color.purple)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: