title: Check if a value is present in enum or not
body: <p>Following is my enum</p>
  <pre><code>enum HomeDataType: String, CaseIterable {
    case questions           = &quot;questions&quot;
    case smallIcons          = &quot;smallIcons&quot;
    case retailers           = &quot;retailers&quot;
    case products            = &quot;products&quot;
    case banners             = &quot;banners&quot;
    case single_product      = &quot;single_product&quot;
    case single_retail       = &quot;single_retail&quot;
    case categories          = &quot;categories&quot;
    case airport             = &quot;All_Airport&quot;
    case single_banner       = &quot;single_banner&quot;
    case none                = &quot;none&quot;
  }
  </code></pre>
  <p>Want to check if a value is present in enum or not? How to do it?</p>