title: SwiftUI Views with a custom init
body: <p>Let's say that I am making a custom input element that looks like this:</p>
  
  <pre class="lang-swift prettyprint-override"><code>struct CustomInput : View {
      @Binding var text: String
      var name: String
  
      var body: some View {
          TextField(name, text: $text)
              .modifier(InputModifier())
  
      }
  }
  </code></pre>
  
  <p>Currently, when I instantiate this view I'm required to pass both <code>text</code> and <code>name</code> names to arguments. I want to be able to make the <code>name</code> argument optional, like in the example below.</p>
  
  <pre class="lang-swift prettyprint-override"><code> CustomInput("Some name", $text)
  </code></pre>
  
  <p>Typically I'd use an init method for this. But I'm not sure how to handle property wrappers like <code>@Binding</code> in the init function. </p>
  
  <p>Any ideas on how I can achieve this?</p>