1

Why text show in single Line in my whole app

let alert = UIAlertController(title: "PayPal", message: "With PayPal processing fee total amount is . Do you want to proceed?", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Yes", style: UIAlertActionStyle.default, handler: { (action: UIAlertAction!) in

}))
alert.addAction(UIAlertAction(title: "No", style: UIAlertActionStyle.default, handler: { (action: UIAlertAction!) in

}))
self.present(alert, animated: true, completion: nil)

enter image description here

Nirav D
  • 71,513
  • 12
  • 161
  • 183

1 Answers1

2

Most probably the reason of this issue is somewhere you are overriding the UILabel Property in your code. when you remove that code, it definitely works.

If you don't override it then search following in your pod files. may be some of pod file override UILabel property for their use.

extension UILabel {
    ...
    override open func draw(_ rect: CGRect) { ... }
    override open var intrinsicContentSize: CGSize { ... }
    ...
}
Denis
  • 492
  • 2
  • 15