UIImage documentation in Swift is wrong

Originator:bek
Number:rdar://40373422 Date Originated:2018-05-18
Status:Open Resolved:
Product:UIKit Product Version:
Classification:Documentation Reproducible:Always
 
Documentation error.
On https://developer.apple.com/documentation/uikit/uiimage

Under 'Comparing Images' it is stated that 'isEqual(_:)' is appropriate to use whereas '==' is an identity comparison.
In Swift this is not true. Equatable conformance on NSObjects are implemented by calling 'isEqual(_:)', so the two cases are identical.

See Jordan Rose's comment here: https://forums.swift.org/t/equatable-on-nsobject/12805/2

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!