emoji - Swift `join` hangs when joining string with country flag -


i discovered while working in swift 1.2. have reported bug. wonder why?

import uikit  var str = "πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ"  ([str] nsarray).componentsjoinedbystring("") // work join("", [str]) // hangs forever 

apple has fix problem in swift 2.0, join replace method joinwithseparator(separator: string) -> string works fine flags.

here code snippet.

var str = "πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ"  ([str] nsarray).componentsjoinedbystring("") // work  [str].joinwithseparator("") 

output

πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ πŸ‡¬πŸ‡§ lhr ✈️ sfo πŸ‡ΊπŸ‡Έ 

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -