Swift: Button round corner breaks contraints
问题 I have a tableview with custom cell loaded via xib and in that cell I have status button which bottom right corner should be rounded. The button has constraints Trailing/Leading/Bottom space to superview=0 and height=30. Without rounding it is working perfectly, as soon as I round one corner for example bottom right the constraints breaks self.btnStatus.roundCorners(corners: [.bottomRight], radius: 7.0, borderWidth: nil, borderColor: nil) Some guys here suggesting to call layoutSubviews() but