Hacker News new | ask | show | jobs
by stiGGG 3500 days ago
From the code samples in README:

var payload: ()

What does that mean? What type has payload? I throwed it inside Xcode, it does compile but i still don't understand it.

1 comments

It's Void. In that example there is no need for the action to have a payload.
Ah, thanks, didn't know you could declare a Void variable. And Payload is an associated type of the Protocol, now i got it ;)