What's New / Apple Intelligence, ML & Evaluation

What's new in SensitiveContentAnalysis

+4 NewiOS · macOS

SensitiveContentAnalysis detects nudity and other sensitive imagery in photos and video using on-device analysis. It respects the user's system-level Sensitive Content Warning setting.

4 new APIs, no deprecations or removals. A new struct SCSensitivityAnalysis.ContentType classifies what was found, with cases sexuallyExplicit and goreOrViolence. Analysis results add a detectedTypes property reporting which content types matched.

New

4
var

detectedTypes

NewiOSmacOS
open var detectedTypes: Set<SCSensitivityAnalysis.ContentType> { get }

Type of sensitive content the analyzed media contains

struct

SCSensitivityAnalysis.ContentType

NewiOSmacOS
public struct ContentType : Hashable, Equatable, RawRepresentable, @unchecked Sendable
Declaration
public struct ContentType : Hashable, Equatable, RawRepresentable, @unchecked Sendable {

    public init(rawValue: String)
}
let

SCSensitivityAnalysis.ContentType.goreOrViolence

NewiOSmacOS
public static let goreOrViolence: SCSensitivityAnalysis.ContentType
let

SCSensitivityAnalysis.ContentType.sexuallyExplicit

NewiOSmacOS
public static let sexuallyExplicit: SCSensitivityAnalysis.ContentType

No APIs match your filter.

← More in Apple Intelligence, ML & Evaluation