title: Can we use for loop for items of a struct?
body: <p>I have a struct like this:</p>
  <pre><code>struct TestType {
      var value1: String? = &quot;1&quot;
      var value2: String? = &quot;2&quot;
      var value3: String? = &quot;3&quot;
      var value4: String? = &quot;4&quot;
      var value5: String? = &quot;5&quot;
      var value6: String? = &quot;6&quot;
      var value7: String? = &quot;7&quot;
      var value8: String? = &quot;8&quot;
      var value9: String? = &quot;9&quot;
  }
  </code></pre>
  <p>I want be able to use a for loop on values of TestType, like this code in below, is this possible in swift?</p>
  <p>Or even any kind of loop support for items of a struct?</p>
  <pre><code>func myTestFunction() {
      let test: TestType = TestType()
      test(value1...value9).forEach { value in
          if let unwrappedValue: String = value {
              print(unwrappedValue)
          }
      }
  }
  </code></pre>