In iOS 17, Apple released a new feature for the Messages app to detect nudity in images and videos sent by your contacts. It turns out that this is an API that you can use in your own app, and in this video, I will show you how to set it up!
Source code: https://gist.github.com/pitt500/8f626...
Content:
0:00 - Intro
0:55 - App Entitlement
1:34 - Sensitive Content Warning
3:17 - Implementing Core Logic
6:16 - Optimizing Logic and UI
7:24 - Getting a test image
8:29 - Lena
10:04 - Testing the app
10:40 - Outro
------
Other videos from my channel:
available & unavailable: • Detect what is the running platform w...
The Composable Architecture (TCA): • The Composable Architecture
How to display a GIF in SwiftUI?: • How to display a gif in SwiftUI? 💡
SampleBuilder Macro: • Say Goodbye to Manual Mock Data: Disc...
Result Builders: • Result Builders in Action: Simplifyin...
-----
Resources:
Sensitive Content Analysis:
https://developer.apple.com/documenta...
What's new in privacy? WWDC23:
https://developer.apple.com/videos/pl...
Turn on sensitive content warning:
https://support.apple.com/guide/iphon...
Testing sensitive Content:
https://developer.apple.com/documenta...
Issue found with debug profile:
https://developer.apple.com/forums/th...
-----
Contact:
/ swiftandtips
https://iosdev.space/@swiftandtips
/ swiftandtips
Finally, ask me for a video you would like to see next 😄!