I have a function like this:
func stamp(documentURL: NSURL, saveURL: NSURL) { ...}
I would like someone to be able to set both of these options if they want to. But if they set only the first parameter, I would like to saveURL = documentURL. Is there a way to do this in a function declaration?
function swift swift2
Tom j
source share