To repeat a string N times in Swift, you can use the `String(repeating:count:)` initializer.
In this example,
"Hello"
and the count 3
to repeat it 3 times.repeatedString
.let repeatedString = String(repeating: "Hello", count: 3)
print(repeatedString)
HelloHelloHello
In this tutorial, we learned How to Repeat a String N Times in Swift language with well detailed examples.