Simple PhoneFormatter for UITextField

Greetings to all! Quite often you can find a form for entering a phone number in mobile applications. And the most common use cases are user registration and authorization. However, Apple does not offer a native solution for formatting a phone number. This post will demonstrate the development process of a fairly simple and at the same time high perfrormance PhoneFormatter.