Swift – Read automatically pin-code from SMS / OneTimeCode

Very often you should insert a pin-code in a UITextField that some service in order to verify your identity sends you via SMS (generally for a 2FA, two-factor authentication). Why do you need to write by yourself if you can read automatically and feel the UITextField directly? Starting from iOS 12 you can do this, […]