"Messages now includes tools that warn children and provide helpful resources if they receive or attempt to send photos that may contain nudity. [...] Messages uses on-device machine learning to analyze image attachments and determine if a photo appears to contain nudity. The feature is designed so that Apple doesn’t get access to the photos."