struct FinanceOutput: View { @Binding var price: Double @Binding var down: Double @Binding var apr: Double private var rate: Double = 0.0 init(price: Binding<Double>, down:Binding<Double>, apr:Binding<Double>, of rate: Double ) { self._price = price self._down = down self._apr = apr self.rate = rate } The above is my code and I do have the @Binding variables defined properly in another view--using @State.
What I'm trying to do is use 'rate' in an equation to define 'apr/12'. I think I worked it out before in an earlier version of Xcode but now all I get is: "Cannot use instance member 'apr' within property initializer; property initializers run before 'self' is available." I know I am using Binding types but even when I change type using Double() I still get errors. Any help would be appreciated.