Skip to content

Use in SwiftUI View #13

Description

@sweih

Hi,

guess I am doing something wrong...
Running this code on a view which is opened as sheet crashes the app.

import SwiftUI
import SunburstDiagram

struct MealBuilderView: View {
    var body: some View {
        
            let configuration = SunburstConfiguration(nodes: [
                Node(name: "Walking",
                     showName: false,
                     value: 10.0,
                     backgroundColor: .systemBlue),
                Node(name: "Restaurant",
                     showName: false,
                     value: 30.0,
                     backgroundColor: .systemRed),
                Node(name: "Home",
                     showName: false,
                     value: 75.0,
                     backgroundColor: .systemTeal)
            ])
            return SunburstView(configuration: configuration)
    }
}
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions