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

[AppKitBackend] Fix padding modifier

Open stackotter opened this issue 1 year ago • 0 comments
trafficstars

ControlsExample currently has uneven spacing between the three groups when run using the AppKitBackend (SCUI_BACKEND=AppKitBackend swift run ControlsExample). It seems like .padding(.bottom, 20) is adding 20 pts of padding to both the bottom and the top of the element (removing the padding on the bottom of the first group fixes the spacing). This effect doesn't seem to happen for leading and trailing padding (only top and bottom).

Screenshot 2024-04-08 at 12 03 28 am

stackotter avatar Apr 07 '24 14:04 stackotter