By default this library displays country flag, country code and phone code . I was able to remove the country code but not the flag .
Let cpv = CountryPickerview(frame: CGRect(x: 0, y: 0,width: 120,height:20))
UserNumber.leftView =cpv
UserNumber.leftView =.always
cpv.showCountryCodeInView = false
Create an IBOutlet from storybaord, set width of the view equal to 50:
and set following values: