title: Swift-iOS append a list of 3 image names, looped through count of an array of 6 repeated
body: <p>I have 3 hard coded images in my swift project. "pollListBg1 to 3"</p>
  
  <p>I have one array of my image strings e.g </p>
  
  <pre><code>var imageStringsArray: Array&lt;String&gt; = ["pollListBg1","pollListBg2","pollListBg3"]
  </code></pre>
  
  <p>and another array:</p>
  
  <pre><code>var stringsArray: Array&lt;String&gt; = ["String1","String2","String3","String4","String4","String6"]
  </code></pre>
  
  <p>I want to make a new array from the count of stringsArray which is 6 but with the image array imageStringsArray repeated:</p>
  
  <p>e.g this is what my final array should look like:</p>
  
  <pre><code>var finalStringArray: Array&lt;String&gt; = ["pollListBg1","pollListBg2","pollListBg3","pollListBg1","pollListBg2","pollListBg3"]
  </code></pre>
  
  <p>I know how to run through a loop and append but I am a little confused:</p>
  
  <pre><code>var finalStringArray = [String]()
  for (var i = 1; i &lt;= 6; i++) {
  let imageString = "pollListBg\(i).png"
  finalStringArray.append(imageString)
  }
  </code></pre>
  
  <p>Any help is much appreciated. </p>