safx / emoji-swift Goto Github PK
View Code? Open in Web Editor NEWString extension converting to and from emoji character and Emoji-One
License: MIT License
String extension converting to and from emoji character and Emoji-One
License: MIT License
Emoji.swift:2815:9: The compiler is unable to check that this switch is exhaustive in reasonable time
Should add default clauses to the switch
statements
Can it be used in swift 4?
Hey mate, the last release has left the pod empty,
Steps to reproduce:
pod 'Emoji-swift'
$ pod install
$ ls -lah Pods/Emoji-swift/
drwxr-xr-x 4 jaime staff 136B Jan 29 13:06 .
drwxr-xr-x 46 jaime staff 1.5K Jan 29 13:10 ..
-rw-r--r-- 1 jaime staff 1.0K Jan 29 13:06 LICENSE
-rw-r--r-- 1 jaime staff 1.7K Jan 29 13:06 README.md
Thanks for sharing!!! 👍
print("🦧".emojiEscapedString)
It's not working
With the latest Xcode and Swift updates from Apple I am getting the following error:
[Path]/Pods/Emoji-swift/Sources/Emoji.swift:22:31: Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
It seems Swift doesn't like the huge hard coded array there...
It takes ~30m to compile the framework with Carthage. Probably something related to optimizations in release mode but can't be sure. Probably a similar issue was resolved in https://github.com/alexaubry/HTMLString by migrating strings into a plist file.
Thank you for updating the codebase to Swift-3.
Any chance we could reflect this change on cocoapods too?
Thanks!
I Entered text as - Spread love and happiness ❤️
When escaped - Spread love and happiness : heart : ï¸
When unescaped - Spread love and happiness ❤️ ï¸
Why does it adds ï. at the end of some emojis.
package at 'https://github.com/safx/Emoji-Swift.git' @ 4a5b867 is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version:5.3' to specify the current tools version
Would you mind adding these aliases? Those are supported by the Twitter Emoji library...
':)' => 'smile',
':D' => 'grin',
';)' => 'wink',
':3' => 'blush',
':p' => 'tongue',
'B)' => 'sunglasses',
'o:)' => 'innocent',
':*' => 'kissing_wink',
'=))' => 'joy',
':x' => 'love',
'\:D/' => 'mrgreen',
'<3' => 'heart',
'=((' => 'heartbreak',
':|' => 'neutral',
':\\' => 'confused',
':o' => 'open_mouth',
':(' => 'frown',
':/' => 'confused',
':s' => 'confounded',
'D:' => 'anguished',
':\'(' => 'cry',
':#' => 'grimace',
':-S' => 'bawling',
'~X(' => 'triumph',
'>_<' => 'rage',
'>:)' => 'naughty',
'X_X' => 'scream',
'I-)' => 'sleeping',
'(*)' => 'star',
':hear_no_evil:' => 'hear_no_evil',
':see_no_evil:' => 'see_no_evil',
':rocket:' => 'rocket',
':bouquet:' => 'bouquet',
':thinking_face:' => 'thinking_face',
':rolling_eyes:' => 'rolling_eyes',
':zipper_mouth:' => 'zipper_mouth',
':nauseated_face:' => 'nauseated_face',
':clap:' => 'clap',
':facepalm:' => 'facepalm'
``
if we open this site
we see that 'one' is actually
"one" : "\u{0031}\u{FE0F}\u{20E3}"
not the
"one" : "\u{0031}\u{20e3}"
And if you insert "one" emoji into text from your apple device you'll get "\u{0031}\u{FE0F}\u{20E3}" . But this site matches your version of emoji dictionary.
Any ideas? Should them be replaced?
Can you add new tag for last commit?
SMP can't fetch last version(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.