In swift 3 I use following code:
let str = "Hello Ž Đ Š Č ž đ ć č š"
let x = str.folding(options: .diacriticInsensitive, locale: .current)
but x will be "Hello Z Đ S C z đ c c s"
.
How can I achieve that "Đ"
and "đ"
will be "D"
and "d"
?
In swift 3 I use following code:
let str = "Hello Ž Đ Š Č ž đ ć č š"
let x = str.folding(options: .diacriticInsensitive, locale: .current)
but x will be "Hello Z Đ S C z đ c c s"
.
How can I achieve that "Đ"
and "đ"
will be "D"
and "d"
?