tl/dr: Sunburst displays all slices with equal weight when called from SwiftUI (instead of from UIKit).
I'm attempting to integrate SwiftSunburstDiagram in a project using SwiftUI. Most properties work properly, but all slices are displayed equally weighted. I've set a breakpoint, and the computed weights are computed (and computed properly). However, those weights being computed on the async DispatchQueue do not appear to cause the UI display to change.
Using your example from the main documentation, SunburstDiagram version 1.1.0, XCode version 11.5, iphone X running iOS 13.4 (but the same problem appears in the simulators) the following code reproduces the problem.
The only difference from your example demo is that because this is SwiftUI, there's no UIHostingController involved.
To recreate: File -> New Project -> SwiftUI, Single View.
Replace the contents of ContentView.swift with the following:
tl/dr: Sunburst displays all slices with equal weight when called from SwiftUI (instead of from UIKit).
I'm attempting to integrate SwiftSunburstDiagram in a project using SwiftUI. Most properties work properly, but all slices are displayed equally weighted. I've set a breakpoint, and the computed weights are computed (and computed properly). However, those weights being computed on the async DispatchQueue do not appear to cause the UI display to change.
Using your example from the main documentation, SunburstDiagram version 1.1.0, XCode version 11.5, iphone X running iOS 13.4 (but the same problem appears in the simulators) the following code reproduces the problem.
The only difference from your example demo is that because this is SwiftUI, there's no UIHostingController involved.
To recreate: File -> New Project -> SwiftUI, Single View.
Replace the contents of ContentView.swift with the following:
I expect a diagram much like the made readme.md demonstrates, instead I get a view with all slices equally weighted
What I expected:![diagram-with-text](https://user-images.githubusercontent.com/8991156/82739976-766c4280-9d12-11ea-90ff-86927e54cfac.png)
What I got:![IMG_3701](https://user-images.githubusercontent.com/8991156/82740034-f4304e00-9d12-11ea-9403-ad690bd81980.PNG)
Note that the transport slice is the same size as the home slice. It should be smaller.