Contents

makeMessage(_:)

Transform a legacy Notification into a type-safe Message

Declaration

static func makeMessage(_ notification: Notification) -> MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage?

Parameters

  • notification:

    The notification to parse

Return Value

A Message if the notification contains valid data, nil otherwise