0

I have created a UIAlertController with two text fields, it turned out like this:

screenshot of alert controller

Is it possible to create some space between them without creating my own pop up view controller?

This is my code:

let alert = UIAlertController(title: "Please enter Dish description and price", message: "", preferredStyle: .alert)
    alert.addTextField(configurationHandler: desc)
    alert.addTextField(configurationHandler: price)
7
  • 1
    You need to create your own if you wish to customize its appearance.
    – rmaddy
    Oct 18, 2018 at 15:50
  • UIAlertController is that what it is – with a very few options to customise it.
    – holex
    Oct 18, 2018 at 15:55
  • As others mentioned you need to create a custom alertcontroller. Take a look at this tutorial medium.com/if-let-swift-programming/…
    – lionserdar
    Oct 18, 2018 at 16:03
  • Hi maybe consider this, really cool PopupDialog and easy to use: github.com/Orderella/PopupDialog
    – ValW
    Oct 18, 2018 at 16:10
  • I'll consider using that, Thanks.
    – H.Epstein
    Oct 18, 2018 at 16:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.