Releases: 0xLeif/LayerKit
Releases · 0xLeif/LayerKit
LayerKit.init
func embed(_ closure: () -> CALayer) -> Self
func background(color: CGColor) -> Self
// MARK: corners
func corner(radius: CGFloat) -> Self
func masked(corners: CACornerMask) -> Self
// MARK: mask
func mask(layer: CALayer?) -> Self
func mask(_ closure: () -> CALayer?) -> Self
// MARK: border
func border(width: CGFloat) -> Self
func border(color: CGColor?) -> Self
// MARK: shadow
func shadow(opacity: Float) -> Self
func shadow(radius: CGFloat) -> Self
func shadow(offset: CGSize) -> Self
func shadow(color: CGColor?) -> Self
func shadow(path: CGPath?) -> Self
// MARK: allows
func allows(edgeAntialiasing: Bool) -> Self
func allows(groupOpacity: Bool) -> Self
// MARK: should
func should(masksToBounds: Bool) -> Self
func should(rasterize: Bool) -> Self
// MARK: is
func `is`(hidden: Bool) -> Self
func `is`(opaque: Bool) -> Self
func `is`(doubleSided: Bool) -> Self
func `is`(geometryFlipped: Bool) -> Self
// MARK: frame
func frame(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat) -> Self
func frame(rect: CGRect) -> Self
// MARK: configure
func configure(_ closure: (CALayer) -> Void) -> Self