ProtocolFoundation5.9.0
NSMutableCopying
The NSMutableCopying
protocol declares a method for providing mutable copies of an object. Only classes that define an “immutable vs. mutable” distinction should adopt this protocol. Classes that don’t define such a distinction should adopt NSCopying
instead.
protocol NSMutableCopying
Requirements
func mutableCopy(with: NSZone?
) -> Any Returns a new instance that’s a mutable copy of the current one.
Citizens in Foundation
Members
func mutableCopy(
) -> Any Returns a new instance that’s a mutable copy of the current one.