Created
April 25, 2021 04:26
-
-
Save ilamanov/35d0b6a206341122b7fdf2b31b19110d to your computer and use it in GitHub Desktop.
Creating SwiftPieChart: PieSliceData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct PieSliceView: View { | |
var body: some View { | |
Text("Hello, World!") | |
} | |
} | |
struct PieSliceData { | |
var startAngle: Angle | |
var endAngle: Angle | |
var color: Color | |
} | |
struct PieSliceView_Previews: PreviewProvider { | |
static var previews: some View { | |
PieSliceView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment