这就是我的意思:
let desiredResult: Character = "ї\u{0308}\u{20dd}"
let first: Character = "ї\u{0308}"
let combinedResult: Character = Array("\(first)\u{20dd}".characters)[0]
我怎样才能更优雅地写下这个烂摊子?
答案 0 :(得分:0)
只需将String
投入Character
初始化程序:
let result = Character("\(first)\u{20dd}")