Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bartkozal
Last active September 16, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bartkozal/fb62ede62987dcd7dc27ae8aac2f8098 to your computer and use it in GitHub Desktop.
Save bartkozal/fb62ede62987dcd7dc27ae8aac2f8098 to your computer and use it in GitHub Desktop.
private func composeMessage() {
let layout = MSMessageTemplateLayout()
layout.image = UIImage(named: "message-background.png")
layout.imageTitle = "iMessage Extension"
layout.caption = "Hello world!"
let message = MSMessage()
message.shouldExpire = true
message.layout = layout
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment