Closed floriangbh closed 7 years ago
@terflogag Thanks for your issue, I think this is a necessary enhancement ( emoji list configurable ), currently, ISEmojiView
will automatically read the list of pre-defined emoji from ISEmojiList.plist
in bundle.
for temporary, You can fork this project, and modify the file ISEmojiList.plist
directly, to config emoji list.
Do you have any idea about code?
Thank you for your response !
I don't know what is the best. On Android there are a lot of OS version... So I can make a PR with another plist file with only the compatible smiles and set flag for android compatibility. Like that :
let emojiView = ISEmojiView()
emojiView.delegate.setAndroidCompatibility = true // false by default
emojiView.delegate = self
If the flag is set to true, ISEmojiAndroidCompatibilityList.plist
is loaded.
If the flag is set to false, ISEmojiList.plist
is loaded.
What do you think about it ?
How do you ensure that your emoji list is compatible with all Android systems?
I think as a good design of the keyboard library, it should abstract more, like emoji list custom, let the user to configure their own emoji list. looks like this:
let emojis: [[String]] = ... // read from file or other
let emojiView = ISEmojiView(emojis)
What do you think?
There are different version of emoji (based on unicode I believe: http://emojipedia.org), and each Android version supporting or not supporting some version. So I will take a version (for exemple Android Jelly Bean) and add only the emoji which are supported since this version...
Yes this is the better way ! But with optional param :
let emojis: [[String]] = ... // read from file or other
let emojiView = ISEmojiView(emojis) // Load custom
// OR
let emojiView = ISEmojiView() // Load default ISEmojiList.plist
for ISEmojiList.plist
, I think we should use a compatible version by default.
Later I will add a constructor and update here.
Cool thank you ! I will make the next week a file with Android/iOS emojis compatibility. I can make a PR with it when it's done if you want ?
Very much welcome your PR. I think we should open a new issue for this. ;]
I will open new issue asap when I have more information about the minimum Android version. I think Jelly Bean is the good one, but I need to see with the other Android dev :)
Finally the current emoji file doesn't contain the last emoji, then almost all of the emoji are compliant with old Android :-)
Congratulations! Welcome to share your emoji list file!
Hello !
Thank you for this library ! 👍 It is possible to not show somes emoji ? (because some emoji can't be read on Android..)
Thank you, Florian