Suppose that I have a String object in Swift and I want to use String format class method to combine it and several other objects like this:
var foo = 0
var str = "str"
String(format: "%d (%s)", foo, str)
This example doesn't work as expected because %s can't handle String objects. How can I do it then?
Thanks in advance.