In my application I am able to send an SMS programatically to a particular mobile number when the user clicks submit button. Then there is a response message from that mobi
You can't read SMS, but you can auto fill a text field from SMS.
From Apple Documentation :
To ensure your text input view displays the right AutoFill suggestions, set the textContentType property on any relevant input views.
so you can do the following :
textField.textContentType = .oneTimeCode
More info : check the link here