Replaces the specified sublayer with a different layer object.
- iOS 2.0+
- macOS 10.5+
- tvOS 9.0+
- Core Animation
The layer to be replaced.
The layer with which to replace
old is not in the receiver’s
sublayers array, the behavior of this method is undefined.