swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

Fix Group behaviour in ZStacks

Open stackotter opened this issue 7 months ago • 0 comments

Groups in ZStacks should lay out their children along the z axis but will default to the orientation of the ZStack's container instead.

Fixing this will involve:

  1. Adding the z axis to the Orientation enum.
  2. Updating Group to support this new orientation.
  3. Updating ZStack's implementation of the View protocol to just lean on Group like VStack and HStack already do.

Thanks @bbrk24 for discovering this.

stackotter avatar May 20 '25 13:05 stackotter