I fixed it by replacing flag assets by get country flag from system with country code
func getFlag(country:String) -> String {
let base : UInt32 = 127397
var s = ""
for v in country.unicodeScalars {
s.unicodeScalars.append(UnicodeScalar(base + v.value)!)
}
return String(s)
}
and the flag now is from type String so I changed the UIImageView to be UILabel and bind .text property to the new flag string.
you can check the changes in this fork
I fixed it by replacing flag assets by get country flag from system with country code
and the flag now is from type String so I changed the UIImageView to be UILabel and bind .text property to the new flag string. you can check the changes in this fork