2025 Privacy & Security
WWDC25 · 26 min · Privacy & Security
Integrate privacy into your development process
Learn how to build privacy into your apps from the planning stages through deployment. We’ll cover practical ways to integrate privacy at each step of the development lifecycle, focusing on data minimization, on-device processing, and transparency and control. You’ll discover how to use Apple’s tools and frameworks to protect user data and create a privacy-respecting app experience.
Watch at developer.apple.com ↗Chapters
Code shown on screen · 3 snippets
Create an inline Photos picker
// Create an inline Photos picker
// Define the app's Photos picker
PhotosPicker(
selection: $viewModel.selection,
matching: .images,
preferredItemEncoding: .current,
photoLibrary: .shared()
) {
Text("Select Photos")
}
// Configure a half-height Photos picker
.photosPickerStyle(.inline)
.ignoresSafeArea()
.frame(height: 340) Display the Location Button
// Display the Location Button
LocationButton(LocationButton.Title.currentLocation) {
// Start updating location when user taps the button.
// Location button doesn't require the additional
// step of calling 'requestWhenInUseAuthorization()'.
manager.startUpdatingLocation()
}.foregroundColor(Color.white)
.cornerRadius(27)
.frame(width: 210, height: 54)
.padding(.bottom, 30) Encrypting data in CloudKit
myRecord.encryptedValues["encryptedStringField"] = "Sensitive value"
let decryptedString = myRecord.encryptedValues["encryptedStringField"] as? String Resources
Related sessions
-
14 min -
13 min -
27 min -
13 min -
19 min -
24 min -
24 min -
18 min -
30 min -
24 min -
13 min -
13 min -
12 min