Formatting as Phone Number on Custom UITextField while typing
<p>I have custom UITextFields that I created using <a href="https://github.com/raulriera/TextFieldEffects" rel="nofollow noreferrer">TextFieldEffects</a>. Now I have a different challenge that I need to use phone number formatting for some instances of TextFieldEffects but not all. At this point, I've found <a href="https://github.com/marmelroy/PhoneNumberKit" rel="nofollow noreferrer">PhoneNumberKit</a>, which seems to be doing exactly what I want to do.</p>

<p>However, TextFieldEffects is an instance of UITextField <a href="https://github.com/raulriera/TextFieldEffects/blob/master/TextFieldEffects/TextFieldEffects/TextFieldsEffects.swift" rel="nofollow noreferrer">that can be seen here</a>, thus if I change <code>UITextField</code> to <code>PhoneNumberTextField</code> on line 23, it will affect all of the TextFieldEffects.</p>

<p>Is there a way I can combine these two libraries and be able to get some fields to be affected by PhoneNumberKit but not all?</p>

<hr>

<p>Or is there any better / more convenient way <em>(maybe any other library or without using external library)</em> to achieve what I want to achieve? What other options do I have? What is the best approach on this case?</p>

<hr>

<p>For further discussion, I asked another question <a href="https://stackoverflow.com/questions/36042018/formatting-uitextfields-text-as-phone-number-as-user-types-in">here..</a></p>