Skip to content

that give simple component to reuse for your project

License

Notifications You must be signed in to change notification settings

ragaie/PhoneCodeCountry

Repository files navigation

Phone-Code-Country

that give simple component to reuse for your project

how to used

1- add pod to your pod file pod 'CountryCode-Chtar'

then install pod

2- drag an drop view in storyBoard and change it is class to CodeDropDown

3- create outlet from this view alt tag

4- conform protocal CountryCodeDropDownDelegate and overwrite method func codeDropDown(_ fromView: CountryCodeDropDown, didSelectItem country: Country)

5- final you find this result

alt tag alt tag

6- at last i hope you find it work ok with you, you can change design as you like or modify code.

Author

You can find me in linked in:-

MIT License

Copyright (c) 2020 Ragaie alfy fahmey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.