I am trying to @State values in View1() with Sliders; example
@State private var price: Double = 0.0
@State private var down: Double = 0.0
@State private var tax: Double = 0.0
Then using @Binding values in View2() I want to use these values to make up other values:
@Binding var price: Double
@Binding var down: Double
@Binding var tax: Double
var taxes = price * tax //This line of code doesn't work, tried with '$' and it's still not working. I checked documentation and
this seemed to address the problem but not sure how to implement it.
var transaction: Transaction
The transaction used for any changes to the binding’s value.
If anyone has seen this or made something similar work I would appreciate your insights.