StepperView icon indicating copy to clipboard operation
StepperView copied to clipboard

Horizontal Stepperview frame incorrect due to overlayPreferenceValue

Open acegreen opened this issue 2 years ago • 1 comments

Describe the bug It seems the frame isn't calculated correctly and this results in weird UI behaviour and having to compensate by adding uneven padding

To Reproduce Steps to reproduce the behavior: See screenshot

Expected behavior Frame to take the full bounds of the StepperView

Screenshots

Even padding:

Screen Shot 2022-07-31 at 8 39 09 PM

IMG_0997

Uneven padding:

Screen Shot 2022-07-31 at 8 38 51 PM

IMG_0996

Screen Shot 2022-07-31 at 8 30 15 PM

Info (please complete the following information):

  • Device: [e.g. Simulator / Real Device]
  • OS: [e.g. iOS 13]
  • Pod Version [e.g. 2.16]
  • Xcode Version [e.g. 11] if applicable

Additional context Add any other context about the problem here.

acegreen avatar Aug 01 '22 00:08 acegreen

On a similar note, the drawLabel doesn't align center to the indicators.

I'm looking into creating a PR for both issues once I figure out a better way. I want to use VStack to layout the indicator and label below

acegreen avatar Aug 01 '22 00:08 acegreen