SwiftUI: How to implement a custom init with @Binding variables
Argh! You were so close. This is how you do it. You missed a dollar sign (beta 3) or underscore (beta 4), and either self in front of your amount property, or .value after the amount parameter. All these options work: You’ll see that I removed the @State in includeDecimal, check the explanation at the … Read more