title: Get the dictionary element number in swift
body: <p>I have a [string:bool] dictionary as follows</p>
  
  <pre><code>["name1":true,"name2":false,"name3":true]
  </code></pre>
  
  <p>I want to take the index numbers of the keys with true boolean values</p>
  
  <pre><code>    for(product,value) in products{
          if(value == true){
               print()       
       }
     }
  </code></pre>
  
  <p>how can I do this</p>