CALayer
extension CALayer
-
Apply squircle corner radius.
Declaration
Swift
public func applySquircle()
-
Apply squircle corner radius with a border.
Declaration
Swift
public func applySquircleWithBorder(width: CGFloat, color: UIColor)
Parameters
borderWidth
Border width
borderColor
Border color
-
Remove the squircle corner radius and border.
Declaration
Swift
public func removeSquircle()
-
Remove the squircle border.
Declaration
Swift
public func removeSquircleBorder()