Tokamak icon indicating copy to clipboard operation
Tokamak copied to clipboard

Difference SwiftUI native and Tokamak Path elements

Open astrotuna201 opened this issue 3 years ago • 2 comments

Tokamak based Path layout differs from SwiftUI I am trying to create a simple graph plotter with Tokamak, but cannot solve significant layout problems using a Path inside a LazyHGrid scrollview.

To Reproduce Example project at: https://github.com/astrotuna201/TokamakPathIssue

Expected behavior I expect the path to be plotted as in Assets/MacOSNativeSwiftUI.png

Screenshots If this is a layout/rendering issue, please provide screenshots for both Tokamak and SwiftUI that highlight the difference. see Assets directory in referenced project repository Native: Native Firefox: Firefox Safari: Safari Chrome: Chrome

Desktop (please complete the following information):

  • OS: macOS 12.4, Xcode 13.4.1
  • Browser [e.g. chrome, safari] Safari 15.5, Firefox 102.0.1, Chrome 103.0.5060.114
  • Version of Tokamak [e.g. 0.6.1]: main, or revision b1d358aabbbd9099cddcb41772c9456308904720 on fiber/meta (fiber reconciler)

Smartphone (please complete the following information): not tested

astrotuna201 avatar Jul 07 '22 09:07 astrotuna201

Possibly unrelated to your issue, but it looks like you are use the Fiber backend with dynamic layout enabled. I noticed Lazy*Grid & ZStack, which are not supported by the Fiber renderers yet, so it could cause some unexpected behavior.

carson-katri avatar Jul 07 '22 12:07 carson-katri

Thanks for checking! I switched to main branch and turned off the new Fiber option in the example project, and the result is the same, unfortunately.

astrotuna201 avatar Jul 07 '22 13:07 astrotuna201