There is a standard type for () & # 8594; Void or () -> () in swift?

several times I need to write a block with type

() -> Void or () -> ()

now if the block is null it becomes

(() -> Void)?

which is not very readable.

Is there a standard type that I can use to create a custom one typealias?

+4
source share

Source: https://habr.com/ru/post/1611503/


All Articles