Skip to content

Instantly share code, notes, and snippets.

@bartkozal
Last active September 16, 2016 21:16
Show Gist options
  • 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