Skip to content

KunzManuel/SwiftUI-PieChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

SwiftUI-PieChart

Sample project for a simple Pie Chart in SwiftUI. This example was created while writing the following article.

How to use

VStack {
    PieChart([
        (.red, 50),
        (.blue, 50),
        (.purple, 50)
    ])
    HStack {
        PieChart([
            (.red, 1),
            (.blue, 2),
            (.purple, 3),
            (.green, 4),
        ])
        PieChart([
            (.red, 50),
            (.blue, 50),
            (.purple, 50)
    ])					
  }

}
.padding()

Example Image

Simulator Screen Shot - iPhone 12 Pro - 2021-04-03 at 11 18 42

About

Sample project for a simple Pie Chart in SwiftUI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages