Every June, Apple hosts the World Wide Developers Conference (WWDC), which centres on new software releases and product announcements. This year's WWDC was particularly interesting because of its focus on privacy in the Apple ecosystem. As an app developer, it is important to stay up to date with the latest developments, especially in privacy. Here is a short summary of the key points, saving you 1 hour and 15 minutes of WWDC sessions.Written by our iOS developer and designer Peter.
The four privacy pillars
There are four key principles in the Apple ecosystem that protect users' privacy. These principles should form the basis of all existing and future apps.
1. Data minimisation
Only use the most important data in your app, including how much data you collect, the data you share and what you might share with others.
2. On-device processing
Use the device's capabilities to process data locally, and avoid the need to share it with external servers.
3. Transparency and control
Transparency and control mean that people should know how and why their data is used. They should also have a say in what happens to their data, both up front and later on, when they want to change their mind.
4. Security measures
Implement strong technical measures to uphold the other principles, including end-to-end encryption.

Photo Picker
The Photo Picker has been improved for easy access to photos in your app. Users can now share selected photos or videos without opening up their entire photo and video library. The Photo Picker fits well within your app and gives users control over their photos. You can customise its appearance and avoid complex permission requests. Consider using the Photo Picker for access to individual photos without full access rights.

Screen Capture picker
Apple is introducing ScreenCaptureKit, a new API for macOS that improves screen sharing by sharing only the windows or screens your app needs. With the SCContentSharingPicker API in macOS Sonoma, users can choose specific screen content to share, without having to give conferencing apps full screen recording rights. The chosen content is shared directly, which improves the user experience. Your app can capture this content during the screen recording session without extra permission or building a custom content picker. macOS Sonoma includes a screen sharing menu in the menu bar to keep users informed about the recording, with options to start, stop or update it. You can adapt the picker to your app's needs, such as selection modes or preferred applications.
Calendar
Calendar integration in your app now works more smoothly, especially for apps that focus on creating new events. Apple has introduced two important changes to Calendar access:
1. EventKitUI
If your app only creates new events, EventKitUI lets you show view controllers outside your app without explicit permission, while keeping the same functionality.
2. Add-only permission
For apps with custom user interfaces for events, a new add-only permission is available. It lets you add events without gaining access to other calendar events, so your app's events fit straight into the user's schedule.If full Calendar access is needed later, you can request an upgrade with the user's permission. Provide a clear explanation and the right timing to avoid refusals that could affect the user experience.
Remember that providing a meaningful purpose string and matching the request to the user's intent are essential, so users understand why access is needed.
Existing Calendar access is limited to write-only permission by default when upgrading to iOS 17 or macOS Sonoma. If your app is linked to an older version of EventKit and requests Calendar access, the system automatically asks for an upgrade to full access as soon as the app tries to fetch Calendar events.

Oblivious HTTP API
The Oblivious HTTP API protects users' privacy by hiding IP addresses and concealing app usage from network operators. It is especially useful for preventing others from seeing which apps people use. That matters, because it can reveal a lot about someone's life.
Imagine internet providers being able to see which apps you use: that could be quite worrying, especially for apps such as dating or health apps.IP addresses are needed for the internet, but they can also be used to work out your location. That can be tricky if you want to build apps where you don't want to know who the user is, for example for anonymous analytics.To tackle these problems, Apple now supports Oblivious HTTP (OHTTP). This is a special internet protocol that makes sure messages are sent securely without others being able to see exactly what is being sent. Network operators can only see that there is a connection, not what is being sent.
Relay
The key part of this system is the relay. The relay knows the user's IP address and the name of the server, but not what is being sent. It only makes sure the connection is established.
By using a relay run by a third party, nobody has full control over who is doing what. This makes it possible to offer technical guarantees for features where you don't want to know the user's identity, such as anonymous analytics. Using OHTTP lets you improve privacy on the internet and has a big impact on users' privacy. Some services, such as iCloud Private Relay, already use it because of its good performance and strong privacy protection, for example to protect DNS queries.
With support for OHTTP, you can strengthen your privacy measures and have a big impact on users' privacy.

Sensitive Content Analysis framework
Apple is introducing Communication Safety and the Sensitive Content Analysis framework, powerful tools to protect children in your app.
- Communication Safety helps keep children safe by warning them and offering help when photos containing nudity are shared. It protects not only in Messages, but also in AirDrop, FaceTime, contact posters and the Photo Picker.
- Sensitive Content Warning makes these features available to everyone. The new Sensitive Content Analysis framework makes it possible to detect content on the device itself, using models provided by the system. You don't need an external server, and integrating it into your app is easy with just a little code.To get started, create an instance of SCSensitivityAnalyzer.
- Check the `analysePolicy` attribute to know what to do. Use `analyzeImage` for photos or videoAnalysis for videos, and track progress with the handler. Get the results with `hasSensitiveContent`. If `isSensitive` is true, the content probably contains nudity. You can then take your own measures, such as blurring, with an option to view the content.

Privacy Manifest
When you build apps, you need to make sure they are safe and private for users. Sometimes you use pieces of code from other companies (third-party SDKs). But it can be hard to know what those pieces of code actually do.To solve this, Apple has something new: the Privacy Manifest. These are lists made by the creators of those pieces of code. They state which data is collected, how it is used, whether it is linked to users, and whether it involves tracking (following you online).
Xcode 15
With Xcode 15 you can create a report that summarises all this information. It is like a PDF and resembles the nutrition labels you see on food. That makes it easy to tell Apple and your users how your app handles privacy.
Privacy Manifests also help manage the websites your app uses to fetch things. You can specify which websites your app may use. If people don't want their information to be tracked, iOS 17 makes sure that doesn't happen.During testing, Xcode 15 helps you see which websites might still try to track your information. You can then decide whether that is allowed or not.
Remember that users have to give permission if you want to collect information about them. And it is never allowed to collect information secretly without people knowing. Apple has special rules to make sure this doesn't happen, and it is important to follow them. If you build apps with pieces of code that have a big impact on privacy, those pieces of code must have a signature and a Privacy Manifest. If you want to collect information for specific reasons, you also need to put that in the manifest. All of this is to make sure users know what happens to their data and that their privacy is protected. So if you build apps, make sure you have all of this in order!
Dependency signature verification
When you develop an app, you can sometimes use tools made by other people to make things easier. These are building blocks, as it were, that you can put into your app. But there are risks too. It is like building with LEGO using other people's bricks. Sometimes a brick can be broken, or even dangerous. To make sure the pieces you use are safe, you can use digital signatures. A signature is a kind of seal that shows the pieces are genuine and have not been altered.
Apple has a way to check these digital signatures. If you use these signatures, you can see whether the pieces are safe.With the new version of Xcode, the program you use to build apps, it is easier to check whether the pieces you use are safe. If a piece is signed, Xcode shows you this. That way you know the piece is fine. If a piece is not signed, you should be extra careful and perhaps contact the creator to check whether it is safe. This matters because some pieces of code can collect user data, and you want to be sure that happens securely. If you create and share pieces of code yourself, it is also smart to sign them, so others know they are genuine.
All in all, this is a way to make sure the apps people use are safe and that data doesn't fall into the wrong hands. It is a bit like a quality mark on food that shows it is safe to eat.
App data on macOS
macOS Sonoma brings improved privacy protection for apps, so your data is safe even when other apps run on the same computer.Here is how it works:
1. The system determines who has access to specific locations on your computer, such as the desktop, documents and downloads. That way you can control which apps can access your private data, such as documents or spreadsheets.
2. For apps that store data in different places, such as chat apps or note-taking apps, there are extra rules. Before such an app gets access to another app's data, the user has to grant permission.
3. To make sure your app also benefits from this new protection, you should:- If your app stores data outside the standard locations, enable App Sandbox to protect your users' data. If you already use App Sandbox, you get this protection automatically.- If your app wants to use data from other apps, macOS Sonoma will ask for permission when you try to access another app's data. Make sure your app has a clear reason to use that data and explain it clearly.
4. If your app needs permission to open files from other apps, you can use NSOpenPanel, a handy tool for accessing files and folders outside your app.
5. Some utilities, such as backup tools or disk management programs, already have permission to view data and need no extra approval.
6. If your app is signed with your Team ID, it can access data from your other apps without extra permission.
7. For even stricter security, you can set rules in your app's Info.plist file to give specific processes access to your app data, using a special rule called NSDataAccessSecurityPolicy. This gives extra control over who has access to your data.
Advanced Data Protection
With Advanced Data Protection, you can improve data security for your users.This feature, introduced in 2022, makes it possible to use end-to-end encryption for most data stored in iCloud, which increases privacy. If you use CloudKit, this form of encryption is applied automatically to the data your app stores when users turn on Advanced Data Protection.You don't need to change anything on your side to manage the encryption keys, operations or recovery processes.
Just follow these simple steps to extend the privacy benefits to your users:
1. Make sure all fields in your CloudKit schema use encrypted data types. This also applies to CKAsset fields, and encrypted versions are available for most data types (such as EncryptedString).
2. Use the `encryptedValues` API to fetch or store data in your CloudKit records. This API handles all encryption and decryption steps for you.
By following these steps, the data in your app benefits from strong security and privacy protection when users turn on Advanced Data Protection.

Safari
Safari's Private Browsing mode is now even better at protecting your privacy.
Here is what you need to know:
1. What is Private Browsing?
It is a way of browsing without the browser remembering your search and browsing history. Handy if you don't want others to see which websites you have visited.
2. What's new in Safari 17?
Private Browsing mode now has extra protection against tracking and fingerprinting. These are techniques used to follow you online.
3. How does it work?
Safari automatically blocks known tracking and fingerprinting sources. If you are a website developer, you should test your website to make sure everything works properly, especially logging in, switching between websites and using certain browser features. You can temporarily turn off this new protection to test whether your website still works properly without it.
4. What else happens?
Safari also removes tracking data when you copy links or while you browse. That gives users more control over who follows them online.
5. Good to know: Private Click Measurement
Advertisers can still see which ads are effective, without knowing your personal information. This happens through a feature called "Private Click Measurement", which is now available in Private Browsing mode. This feature makes sure no data is stored on your computer and that attribution stays limited to a single tab.
These new security features in Safari's Private Browsing mode protect your online privacy better, giving you a safer browsing experience.

Video summary
Want to know more about the privacy features and improvements? Watch Apple's video 'What’s new in privacy'.
Our thoughts?
These recent privacy updates and features in the Apple ecosystem underline Apple's ongoing commitment to safeguarding users' privacy. They also give developers powerful tools to achieve this. As an app developer, we welcome this wholeheartedly and can't wait to explore these new features and protocols and build them into our future projects!
.avif)




