Recent introduction of the background overlay (ZStack) has broken nesting, I believe:
// Playground generated with đ Arena (https://github.com/finestructure/arena)
// âšī¸ If running the playground fails with an error "no such module ..."
// go to Product -> Build to re-trigger building the SPM package.
// âšī¸ Please restart Xcode if autocomplete is not working.
import Gala
import PlaygroundSupport
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("đ Gala").font(.title).padding()
Text("đ Foo").font(.title).padding()
}
}
}
struct Preview: PreviewProvider {
static var previews: some View {
NightAndDay {
Layouts([.sizeThatFits, .fixed(width: 200, height: 200)]) {
ContentView()
}
}
}
}
PlaygroundPage.current.setLiveView(Preview.previews)
This should be showing four tiles and I believe it isn't, because they're overlaid.
Recent introduction of the background overlay (
ZStack
) has broken nesting, I believe:This should be showing four tiles and I believe it isn't, because they're overlaid.