-
Hi Thanks public var body: some View {
WithPerceptionTracking {
ZStack(alignment: .center) {
if let scaleFactor {
ZStack(alignment: .center) {
ForEach(store.surface.scaled(by: scaleFactor).elements) { element in
WithPerceptionTracking {
element.view(store: store, editingElementID: $editingElementID, scaleFactor: scaleFactor)
.clipped()
}
}
}... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @shannoga, this is covered in the docs. All escaping view builder closures must have a |
Beta Was this translation helpful? Give feedback.
Hi @shannoga, this is covered in the docs. All escaping view builder closures must have a
WithPerceptionTracking
applied. SoZStack
doesn't need one on the inside, butForEach
does.