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
Post a Comment