SwiftUI: How to implement a custom init with @Binding variables : <p>I'm working on a money input screen and need to implement a custom <code>init</code> to set a state variable based on the initialized amount.</p>

<p>I thought this would work, but I'm getting a compiler error of:</p>

<p><code>Cannot assign value of type 'Binding&lt;Double&gt;' to type 'Double'</code></p>

<pre><code>struct AmountView : View {
    @Binding var amount: Double

    @State var includeDecimal = false

    init(amount: Binding&lt;Double&gt;) {
        self.amount = amount
        self.includeDecimal = round(amount)-amount &gt; 0
    }
    ...
}
</code></pre>
