struct SheetView: View {
@Binding var showSheet: Bool
var body: some View {
LazyVStack {
Button("Dismiss") {
showSheet.toggle()
}
}
}
}
struct ContentView: View {
@State private var showSheet = false
var body: some View {
Button("Show") {
showSheet.toggle()
}
.sheet(isPresented: $showSheet) {
SheetView(showSheet: $showSheet)
}
}
}
Xcode displays === AttributeGraph: cycle detected through attribute 119104 ===
message in console when SheetView
is presented on screen.
Environment: macOS 14.4.1
Xcode: Version 15.2