Removed center
This commit is contained in:
parent
9f35eb7371
commit
2cdf192ffe
|
@ -277,9 +277,7 @@ extension UIView {
|
||||||
|
|
||||||
//EZSE: Converts view to a circular frame
|
//EZSE: Converts view to a circular frame
|
||||||
public func makeCircular() {
|
public func makeCircular() {
|
||||||
let cntr:CGPoint = self.center
|
|
||||||
self.layer.cornerRadius = min(self.frame.size.height, self.frame.size.width) / 2.0
|
self.layer.cornerRadius = min(self.frame.size.height, self.frame.size.width) / 2.0
|
||||||
self.center = cntr
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue