//First View
struct FinanceInput: View {
@State private var price: Double = 0.0
@State private var down: Double = 0.0
@State private var apr: Double = 0.0
//I know I am not representing 'rate' correctly here--just stuck
NavigationLink(destination: (FinanceOutput(price: self.$price, down: self.$down, apr: self.$apr, rate: Double))) {...
get Error: 'Double.Type' is not convertible to 'Double
//Second View
struct FinanceOutput: View {
@Binding var price: Double
@Binding var down: Double
@Binding var apr: Double
private var rate: Double {
return apr/12
}
// private var TotalFrequency : Float {
// return mhzValue + mhzValueStep
init(price: Binding<Double>, down: Binding<Double>, apr: Binding<Double>, of rate: Double) {
self._price = price
self._down = down
self._apr = apr
}