Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Swift
  3. NKVPhonePicker

NKVPhonePicker

MITSwift2.1.1

A UITextField subclass for iOS that simplifies country code selection and phone number formatting in Swift.

Visit WebsiteGitHubGitHub
144 stars43 forks0 contributors

What is NKVPhonePicker?

NKVPhonePicker is an iOS library that provides a specialized UITextField subclass for handling phone number input with integrated country code selection. It streamlines building international phone number input fields by offering automatic formatting, a searchable country picker with flags, and customization options, reducing boilerplate code for developers.

Target Audience

iOS developers building applications that require international phone number input, such as sign-up forms, contact lists, or verification systems in global apps.

Value Proposition

Developers choose NKVPhonePicker for its drop-in solution that combines country selection and phone formatting into a single UITextField, with features like favorite countries, custom formatting patterns, and RTL support, prioritizing developer convenience and user experience.

Overview

An UITextField subclass to simplify country code's picking. Swift 5.0

Use Cases

Best For

  • Building sign-up or login forms that require international phone number input in iOS apps.
  • Creating contact management features where users need to select country codes and enter formatted phone numbers.
  • Developing verification systems (e.g., SMS-based) that need prefilled country codes and standardized phone formatting.
  • Implementing accessible phone input fields with right-to-left (RTL) language support for global audiences.
  • Reducing development time for phone input UI by using a pre-built, customizable UITextField subclass.
  • Applications requiring custom phone number formatting rules for specific countries beyond default patterns.

Not Ideal For

  • Projects exclusively using SwiftUI, as it's built on UIKit's UITextField and requires integration work
  • Cross-platform applications needing phone input on Android or web, since it's iOS-only
  • Teams requiring advanced phone number validation and parsing beyond formatting, as it focuses on UI input

Pros & Cons

Pros

Integrated Country Picker

Provides a searchable list of countries with flags and dialing codes, eliminating the need to build a separate picker from scratch, as highlighted in the README's Country Code Picker feature.

Automatic Phone Formatting

Applies country-specific phone number patterns dynamically as users type, ensuring consistent formatting without manual intervention, per the Automatic Phone Formatting feature.

Custom Format Patterns

Allows developers to define custom formatting rules for specific countries, offering flexibility beyond default patterns, evidenced by the customPhoneFormats property in the example code.

Favorite Countries Support

Enables marking frequently used countries for quicker access, improving user experience in international apps, as shown with the favoriteCountriesLocaleIdentifiers setting.

Cons

Limited Documentation

The README is brief with instructions like 'If any troubles - watch an example project,' which can make troubleshooting and advanced customization challenging for developers.

CocoaPods-Only Installation

Only supports installation via CocoaPods, lacking Swift Package Manager or Carthage options, which may hinder adoption in modern iOS projects preferring other dependency managers.

Swift Version Fragmentation

For older Swift versions like 4.2 or 2.x, specific branches or commits are required, indicating potential maintenance issues and complexity for teams on different Swift versions.

Frequently Asked Questions

Quick Stats

Stars144
Forks43
Contributors0
Open Issues9
Last commit4 years ago
CreatedSince 2017

Tags

#ios#uitextfield#country-picker#phone#example#phone-input#country#mobile-development#picker#cocoapods#swift#ios-swift

Built With

S
Swift 5

Links & Resources

Website

Included in

Swift26.0k
Auto-fetched 19 hours ago

Related Projects

PhoneNumberKitPhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.

Stars5,376
Forks859
Last commit6 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub