Fix layout issue in ListItemSelectionIndicatorView.
This commit is contained in:
parent
dd9bf89bb4
commit
1197943ddb
@ -38,7 +38,7 @@ public class ListItemSelectionIndicatorView: UIView {
|
||||
super.layoutSubviews()
|
||||
|
||||
let circleRadius = Self.preferredSize / 2
|
||||
let origin = CGPoint(x: center.x - circleRadius, y: center.y - circleRadius)
|
||||
let origin = CGPoint(x: bounds.center.x - circleRadius, y: bounds.center.y - circleRadius)
|
||||
let size = CGSize.square(Self.preferredSize)
|
||||
let frame = CGRect(origin: origin, size: size)
|
||||
unselectedView.frame = frame
|
||||
|
||||
Loading…
Reference in New Issue
Block a user