title: Eureka - How to pass values from collection to form
body: <p>Im new to Eureka and have my swift project where I want to pass to an alert element a collection instead of hardcoded values.</p>
  
  <p>Here is my actual code:</p>
  
  <pre><code> &lt;&lt;&lt; AlertRow&lt;String&gt;() {
                  $0.title = "Employee Type"
                  $0.selectorTitle = "Employee Type"
                  $0.options = ["ADMIN","WORKER","HR","PR"]
                  }.onChange { row in
                      print(row.value)
                  }
              }
  </code></pre>
  
  <p>So, instead of hardcoded options I want to pass an array of a class that I have:</p>
  
  <p>This is my class: </p>
  
  <pre><code>class EmployeeType : AnyObject {
  
      var typeId : Int = 0
      var description : String = ""
  
  }
  </code></pre>