Swift Learning Notes (15)--Program Ape romance Swift+unicode Say I love you

Source: Internet
Author: User

Procedural apes are often thought to be stiff. House, puzzled amorous feelings of a bunch of people. But sometimes. We can also use our own skills to express our romantic.

Because the swift language is Unicode-encoded, Unicode has the latest support for emoji (emoji) emoticons. So, I think. Can we use Swift+unicode to get a romantic?

Nonsense not to say, directly on the code:

Let love = "xxx, I \u{1f491}\u{1f492}\u{1f493}\u{1f495}\u{1f496}\u{1f497}\u{1f498}\u{1f499} you!" "

The output results are as follows:


Of course, there are a lot of emoji expressions in Unicode, about 250, and I'm just writing very easy examples.

Program apes can play their own imaginations. Of course, try to implement it in other languages.


GitHub home: https://github.com/chenyufeng1991. You are welcome to inquire.

Swift Learning Notes (15)--Program Ape romance Swift+unicode Say I love you

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.