Ios swift – In Swift how would you initialize, inline, a variable where the type is a function?
Here's a common variable, for example in network code. private var callback: ((_ blah: String?) -> ()) Of course, you can't do that because there's no initializer. This is easy enough private var callback: ((_ blah: String?) -> ())? then…