Search code examples
swiftuialertcontrollermaterial-components-ios

Add Textfield MDCAlertController IOS


There is no method similar to the addtextfield method in Uialertcontroller. I haven't found any examples of how I can customize MDCAlertControllers. Anybody have an idea?


Solution

  • I think this is not possible. The docs say:

    MDCAlertController class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.