Instance Method

setMessage(_:)

Sets the text message included in the friend invitation.

Declaration

func setMessage(_ message: String?)

Parameters

message

The text message.

Discussion

If you do not set a text message, Game Kit sets a default text message.