1

I have a cell where I assign an UIButton as the accessory view like this:

let button = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 31))
button.setTitle("My button", for: .normal)
cell.accessoryView = button

The result normally looks like this: enter image description here

However using Xcode 11 (Beta) and running on iOS 13 the button's position is out of bounds of the screen: enter image description here

Am I adding the button incorrectly or is this some kind of a bug in SDK/iOS 13?

pajevic
  • 4,607
  • 4
  • 39
  • 73

0 Answers0