Swift
Completed
-
Section 1: Getting Started
-
Section 2: Core Syntax
-
Section 3: Optionals
-
Section 4: Object-Oriented and Value Types
-
Section 5: Memory Management
-
Section 6: Generics and Error Handling
-
Section 7: Concurrency
-
Section 8: Working with Collections
-
Section 9: Codable and Data Handling
-
Section 10: Protocol-Oriented Programming
-
Section 11: Testing and Tooling
-
Section 12: Practical Projects
-
Section 13: Interview Practice
-
Section 14: More Practice Exercises
-
Section 15: More Standard Library
-
Section 16: Advanced Concurrency
-
Section 17: Foundation Framework Deep Dive
-
Section 18: URLSession and Networking Deep Dive
-
Section 19: Combine Framework
-
Section 20: SwiftUI Fundamentals for Swift Developers
-
Section 21: Server-Side Swift with Vapor
-
Section 22: Swift Package Manager Deep Dive
-
Section 23: Swift Concurrency Deep Dive
-
Section 24: More Language Features
-
Section 25: Error Handling Deep Dive
-
Section 26: Testing Deep Dive
-
Section 27: Data Structures and Algorithms in Swift
-
Section 28: More Practice Exercises
-
Section 29: More Interview Practice
-
Section 30: Swift Macros (Swift 5.9+)
-
Section 31: Property Wrappers Ecosystem
-
Section 32: Swift Interop Deep Dive
-
Section 33: iOS App Architecture Patterns
-
Section 34: Performance and Debugging
-
Section 35: App Distribution and CI/CD
-
Section 36: More Practical Projects
-
Section 37: SwiftData and Persistence
-
Section 38: More Design Patterns
-
Section 39: More Review and Practice
-
Section 40: More Foundation Deep Dive
-
Section 41: Advanced Collections in Swift
-
Section 42: Advanced Generics Practice
-
Section 43: UIKit for Legacy and Hybrid Apps
-
Section 44: watchOS and visionOS Development Basics
-
Section 45: More Networking Patterns
-
Section 46: More Testing Practice
-
Section 47: Accessibility in Swift Apps
-
Section 48: Localization
-
Section 49: More Practical Projects Round 2
-
Section 50: Swift Charts Framework
-
Section 51: More Interview and Algorithm Practice
-
Section 52: Final Practice and Mastery
-
Section 53: Swift Compiler and Build System
-
Section 54: More Concurrency Practice
-
Section 55: App Store Guidelines and Review
-
Section 56: More Design and Architecture
244: Privacy Manifest Requirements
Look, I've seen a lot of experienced devs get blindsided by this lately. There's a very common assumption that goes something like this: "My app doesn't track the user, I don't have an analytics SDK, and I'm not uploading any personal data to a server, so I can completely ignore the Privacy Manifest requirements."
That is a dangerous assumption. If you're relying on that logic, you're likely going to get a warning email from App Store Connect—or worse, a rejection—the moment you submit your next build.
"I don't collect data, so I don't need a manifest"
The mistake here is thinking that the Privacy Manifest is only about data collection (the stuff you see in the "App Privacy" nutrition labels on the App Store). While that is a part of it, the manifest is also about API usage.
Apple has identified a set of "Required Reason APIs." These are common APIs that could potentially be used for "fingerprinting" a device to track a user across different apps and websites. The kicker? Many of these are things you use every single day. For example, if you use UserDefaults to save a simple boolean like hasSeenOnboarding, you are using a Required Reason API. It doesn't matter that you aren't "collecting" that data for a marketing firm; the mere act of accessing the user's defaults requires a declared reason in your manifest.
API usage is a separate obligation from data collection
To handle this, you need a PrivacyInfo.xcprivacy file in your project. This is essentially a property list (plist) where you explicitly tell Apple why you're using specific system APIs. I usually recommend adding this file the moment you start a project, just so you don't forget about it during the frantic hours before a release.
The manifest is split into a few key sections. The most critical one for most of us is NSPrivacyAccessedAPITypes. When you add an entry here, you have to provide the API type and a "Reason Code."
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
In the example above, CA92.1 is the official code for "Accessing user defaults to store app preferences." You can't just make up a sentence; you have to use the specific codes Apple provides in their documentation. It's a bit tedious, but it's the only way to satisfy the automated checks.
If you're building a framework or an SDK that other people use, this is even more critical. Apple now requires SDKs to provide their own privacy manifests. If your SDK uses systemBootTime to measure performance but doesn't declare it, the app developer using your SDK will get the warning, and they'll be knocking on your door asking why your library is breaking their App Store submission.
Just remember: the manifest isn't a "privacy policy" for humans; it's a technical declaration for Apple's auditors. If you use UserDefaults, fileModificationDate, or systemBootTime, you're on the hook for a declaration, regardless of how "innocent" your use case is.
📋 Practical Task
Declaring UserDefaults Usage in a Privacy Manifest
Imagine you are maintaining a small utility app that uses UserDefaults to remember the user's preferred theme (Light vs. Dark). You've just realized you don't have a Privacy Manifest, and you want to avoid any App Store Connect warnings.
Your Goal: Create a PrivacyInfo.xcprivacy file (represented as an XML property list) that correctly declares the use of UserDefaults for the purpose of storing app preferences.
Requirements:
- The root element must be a dictionary.
- You must include the key
NSPrivacyAccessedAPITypes. - Within that array, create a dictionary specifying the category
NSPrivacyAccessedAPICategoryUserDefaults. - Assign the correct reason code
CA92.1to theNSPrivacyAccessedAPITypeReasonsarray.
There are no comments for now.