var
NewiOSmacOS
detectedTypes
NewiOSmacOSopen var detectedTypes: Set<SCSensitivityAnalysis.ContentType> { get }Type of sensitive content the analyzed media contains
What's New / Apple Intelligence, ML & Evaluation
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.
detectedTypesopen var detectedTypes: Set<SCSensitivityAnalysis.ContentType> { get }Type of sensitive content the analyzed media contains
SCSensitivityAnalysis.ContentTypepublic struct ContentType : Hashable, Equatable, RawRepresentable, @unchecked Sendablepublic struct ContentType : Hashable, Equatable, RawRepresentable, @unchecked Sendable {
public init(rawValue: String)
}SCSensitivityAnalysis.ContentType.goreOrViolencepublic static let goreOrViolence: SCSensitivityAnalysis.ContentTypeSCSensitivityAnalysis.ContentType.sexuallyExplicitpublic static let sexuallyExplicit: SCSensitivityAnalysis.ContentTypeNo APIs match your filter.