Tokamak
Tokamak copied to clipboard
Difference SwiftUI native and Tokamak Path elements
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:
Firefox:
Safari:
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
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.
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.