title: Operator function '==' requires that 'Entry' conform to 'Equatable'
body: <p>I have some code using if which i want to write in one line to make it compact ..entry is enum</p>
  <pre><code>if Session.shared.input?.entry == .confirm {
                  isButtonValidate = true
  }
  </code></pre>
  <p>I want to make it optimised as</p>
  <pre><code>isButtonValidate = Session.shared.input?.entry == .confirm // Operator function '==' requires that 'Entry' conform to 'Equatable
  </code></pre>
  <p>what is the way to make it correct.
  Thank You for help.</p>