DeepCopying
public protocol DeepCopying
Like NSCopying, but better. A helper protocol for JWPrototypingBuilder.
Warning
To conform, make sure that all properties are passed-by-value, or else also conform to this protocol.-
Returns a distinct instance of the object, by value.
Note
In general, UIKit types are immutable, and therefore are effectively passed-by-value. This includesUIColorandUIFont.Declaration
Swift
func deepCopy() -> Self?Return Value
A deep copy.