Closed b-onc closed 4 years ago
Call
Client.shared.add(reactionTo: activityId, kindOf: "comment", extraData: Comment(text: "awesome post!"), userTypeOf: User.self) { result in /* ... */ }
as shown in docs
Work
Compiler gives error Error: Extra argument 'extraData' in call
Error: Extra argument 'extraData' in call
Comment(text:) initializer needs to be made public for this to work!
Comment(text:)
public
Fixed with #14
What did you do?
Call
as shown in docs
What did you expect to happen?
Work
What happened instead?
Compiler gives error
Error: Extra argument 'extraData' in call
Additional context
Comment(text:)
initializer needs to be madepublic
for this to work!