Page 1 of 1

Button component breaks stack view previews

Posted: Sun Aug 16, 2020 8:27 pm
by numbuh37
Platform: iPad Air 2, iOS 13.6, macOS Catalina 10.15.6
VS Version: 0.5.25
Problem: Adding a button component inside a stack doesn't display and keeps subsequent components from displaying in the stack.
Steps to reproduce:
  1. Add an HStack or VStack and open it.
  2. Add a text component and connect it. The text component displays normally.
  3. Add button connected to the first text component's output. The button doesn't display.
  4. Add another text component connected to the button's output. The text doesn't display. Further downstream components won't display either.

Re: Button component breaks stack view previews

Posted: Mon Aug 17, 2020 12:31 am
by jorge
Hi numbuh37

Thanks for reporting this bug.

Hopefully it will work for you in v0.5.26 New Float Selector. Button now works as View.

The Button component previously wasn't implemented as a View component. I was mainly using it to trigger actions in schematics. I've changed it now to follow the same functionality as in SwiftUI.

If you were already using the Button component in schematics, you might need to create some View content to see them or else delete them and create them again.