I have a completion handler function with a string in return value.
func hardProcessingWithString(input: String, completion: (result: String) -> Void) {}
However, Xcode requires me to put _ before my return value name so I have to put _ before result
func hardProcessingWithString(input: String, completion: (_ result: String) -> Void) {}
and because of that, when I call my function, my return value doesn't have name but instead it shows this
hardProcessingWithString(input: String, completion: (String) -> Void)
Is there a way that instead of showing
completion: (String) -> Void)
I want it to show
completion: result -> Void)
so that I know exactly what return value means instead of the completion type. Thanks!