We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2bbfdd commit 9ff90d6Copy full SHA for 9ff90d6
Sources/SwiftCrossUI/Views/ZStack.swift
@@ -5,7 +5,7 @@ public struct ZStack<Content: View>: View {
5
self.init(content: content())
6
}
7
8
- public init(content: Content) {
+ init(content: Content) {
9
body = content
10
11
@@ -59,6 +59,7 @@ public struct ZStack<Content: View>: View {
59
let position = (size.size &- childSize.size) / 2
60
backend.setPosition(ofChildAt: i, in: widget, to: position)
61
62
+ backend.setSize(of: widget, to: size.size)
63
64
65
return ViewUpdateResult(size: size, childResults: childResults)
0 commit comments