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
borderWidthBorder width
borderColorBorder color
-
Remove the squircle corner radius and border.
Declaration
Swift
public func removeSquircle() -
Remove the squircle border.
Declaration
Swift
public func removeSquircleBorder()
CALayer Extension Reference