NSShadow

class NSShadow

An object representing a layer’s drop shadow.

  • The offset of the shadow’s frame relative to that of layer it applies to.

    Declaration

    var offset: Size { get }
  • The blur radius of the shadow.

    Declaration

    var blurRadius: Double { get }
  • Color of the shadow.

    Declaration

    var color: Color? { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: NSAttributedString) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.