Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages