Swift URL String Template Equivalent to Python

I'm making url requests to a web api. I'd like to make a template URL and then use string format to pass in the parameters. In Python this is very easy. Here's an example:

I've been trying to do the equivalent in swift but it's made difficult since they use the percent sign with their format specifiers. I tried to research but came up on confusing constructs like percent encoding. Can I accomplish this in Swift?