typealias Handler = () -> Void typealias Handler = () -> ()
This block creates a type alias that works as a Void to Void function (takes in no parameters and returns nothing).
Here is a usage example:
var func: Handler? func = {}