Reputation: 4667
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:
However using Xcode 11 (Beta) and running on iOS 13 the button's position is out of bounds of the screen:
Am I adding the button incorrectly or is this some kind of a bug in SDK/iOS 13?
Upvotes: 1
Views: 1181