title: swiftui: how can i disable a button and blur it after a condition is met?
body: <p>I have a button in swiftUi. When the user presses that button the counter goes down from 5. Once the counter hits zero, the button will become disabled. I have got the code working till this point:</p>
  <pre><code>Button(action: {
      tnum = tnum - 1
  }) {
      Text(&quot;Press Me!&quot;)
         .background(Color.purple) 
         .foregroundColor(.white)  
         .font(.title)             
         .padding() 
  }
  .disable(tnum &lt;= 0)
  </code></pre>
  <p>I know how to blur a button. It would be something like <code>.blur(radius: 3, opaque: false)</code> but I only want this to be executed if the number is zero.</p>
  <p>How can I achieve this?</p>