so I have the following link in my Localizable.strings file:
someURL = "https://www.thisisthelink.be/api/article?categoryId=%@&key=ehhssd%bfbfs43-53456Gdffd~563&lang=nl&amount=1000&mobile=true";
The part where there is the %@ I need to fill in the ID from that category (for example 27). So further in my code I do the following
let URL = String(format: "someURL".localized,String(id))
But this gives a crash, And I don't really know why (the crash is just a Thread 1: EXC_BREAKPOINT(code=1,...) so I can't deduct what exactly is wrong).
The .localized is the following extension
extension String {
var localized: String {
return NSLocalizedString(self, comment: "")
}
}