OptionalCopying

public protocol OptionalCopying

A protocol that objects adopt to provide functional copies of themselves.

  • copy() Default implementation

    Undocumented

    Default Implementation

    Returns a copy of the source object.

    Declaration

    Swift

    func copy() -> Any?