Hi, it's my first day learning Swift and I've encountered the following problem:
When running the code below, it returns the error:
compiler failed: Initializer 'init(value:total:) requires that 'int' conform to 'BinaryFloatingPoint'
struct MeetingView: View {
var body: some View {
VStack {
ProgressView(value: 5, total: 15)
}
}
}
struct MeetingView_Previews: PreviewProvider {
static var previews: some View {
MeetingView()
}
}
Help is appreciated, thanks.