I have a custom subView that was built using a
The short answer is -
As per UIAlertController Class Reference - you can only add a text field to an alert.
func addTextFieldWithConfigurationHandler(_ configurationHandler: ((UITextField) -> Void)?)
Calling this method adds an editable text field to the alert. You can call this method more than once to add additional text fields. The text fields are stacked in the resulting alert.