Skip to content

devmehmetates/SwiftUIPercentChart

Repository files navigation

SwiftUIPercentChart

Easily create graphs that calculate percentiles

How to install this package

  • Open your project on Xcode
  • Go to Project Tab and select "Package Dependencies"
  • Click "+" and search this package with use git clone url
  • Don't change anything and click Add Package
  • The package will be attached to the targeted application

How to use this package

import SwiftUIPercentChart

struct DemoView: View {
    var body: some View {
        SwiftUIPercentChart(data: [50, 40, 30, 20, 30, 50, 30, 10, 20, 50], percentValue: 350, theme: .ocean)
            .frame(width: screenSize.width * 0.7, height: 10)
    }
}

Demo Images

Screenshot 2023-03-26 at 6 46 47 PM Screenshot 2023-03-26 at 6 48 48 PM