Skip to content

Instantly share code, notes, and snippets.

@bartkozal
Last active September 16, 2016 21:15
Show Gist options
  • Save bartkozal/19e01590d29db295807a1198f1fa0370 to your computer and use it in GitHub Desktop.
Save bartkozal/19e01590d29db295807a1198f1fa0370 to your computer and use it in GitHub Desktop.
private func composeMessage() {
let session = MSSession()
let layout = MSMessageTemplateLayout()
layout.image = UIImage(named: "message-background.png")
layout.imageTitle = "iMessage Extension"
layout.caption = "Hello world!"
let message = MSMessage(session: session)
message.layout = layout
message.summaryText = "Sent Hello World message"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment