TSMessages
TSMessages copied to clipboard
Emoji as an alternative to images?
Is there any interest from anyone else to be able to use emoji instead of images? E.g. instead of specifying an "imageName" in the design .json file, you'd specify something like:
"warning": {
"backgroundImageName": "NotificationBackgroundWarning.png",
"borderColor": "#A28918",
"borderHeight": 1,
"buttonBackgroundImageName": "NotificationButtonBackground.png",
"buttonTitleTextColor": "#484638",
"buttonTitleShadowColor": "#E5D87C",
"buttonTitleShadowOffsetX": 0,
"buttonTitleShadowOffsetY": 1,
"contentFontSize": 12,
"contentTextColor": "#484638",
"emoji": "⛔️",
"emojiFontSize": 16,
"shadowColor": "#E5D87C",
"shadowOffsetX": 0,
"shadowOffsetY": 1,
"textColor": "#484638",
"titleFontSize": 14,
"backgroundColor": "#DAC43C"
}
Perhaps even a way to override the emoji used when actually creating the message?
TSMessage.showNotificationInViewController(self, title: "Thanks for the feedback!", subtitle: nil, type: .Success, emoji: "👍", emojiFontSize: 20)
I like the idea, but TSMessages is not in active development unfortunately. Also, the method headers are a big pain, as there are so many parameters already. This would all be awesome in Swift :+1:
OK, were you thinking of creating a successor to TSMessages yourself in Swift, or is there another library you recommend people move to for similar functionality?
Sorry, I wanted to do that, but never found the time to. I don't know about good alternatives out of the top of my head.