TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

Emoji as an alternative to images?

Open winzig opened this issue 10 years ago • 4 comments

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"
}

winzig avatar Jul 23 '15 17:07 winzig

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)

winzig avatar Jul 23 '15 17:07 winzig

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:

KrauseFx avatar Jul 23 '15 18:07 KrauseFx

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?

winzig avatar Jul 23 '15 18:07 winzig

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.

KrauseFx avatar Jul 23 '15 18:07 KrauseFx