3 ms·
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 unde
by stiGGG 10y 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.
- lucaquerella 10y agoIt's Void. In that example there is no need for the action to have a payload.
- stiGGG 10y agoAh, thanks, didn't know you could declare a Void variable. And Payload is an associated type of the Protocol, now i got it ;)