title: swiftui text, how can I pass a bool value to func hidden ()
body: <p>In swiftui text there is a function called hidden (). When I set this function, the text is invisible. So far everything is fine. Now I want it to be invisible only if a Bool value is set. Unfortunately, I can not pass a bool value.</p>
  
  <pre><code>Text("Bitte Password eingeben")
                      .foregroundColor(.white)
                      .padding(EdgeInsets(top: 50, leading: 5, bottom: 0, trailing: 0))
                      .cornerRadius(5)
                      .textContentType(.password)
                      .hidden()
  </code></pre>