inviteFinished(withInvitations:error:) method doesn't match optional requirement of protocol 'InviteDelegate'
jackngai opened this issue · 0 comments
jackngai commented
I get this warning message when I added the inviteFinished method in step 11 to the FCViewController:
/Users/jackngai/Desktop/iOS Apps/friendlychat-ios/ios-starter/swift-starter/FriendlyChatSwift/FCViewController.swift:155:10: Instance method 'inviteFinished(withInvitations:error:)' nearly matches optional requirement 'inviteFinished(withInvitations:error:)' of protocol 'InviteDelegate'
I checked the protocol and it specifies a [String] but the method in the guide uses [Any]. Changing the type to match the protocol fixes the issue, but this should be corrected in the guide.