title: How to create an array with Character in count String in Swift 5.5
body: <pre><code>var myStr = &quot;Swift&quot;
  
  let myCh: Character = &quot;S&quot;
  
  var myArr = Array(repeating: String(myCh), count: myStr.count)
  myArr        //   [&quot;S&quot;, &quot;S&quot;, &quot;S&quot;, &quot;S&quot;, &quot;S&quot;]
  </code></pre>
  <p>This code doesn't work in swift 5.5, how can i repeat it in other way?</p>