iOS Platform & SwiftUI (50 Qs)•Part 3: Instruments Profiling, App Architecture & Production Hardening (25 - 35)
Security in iOS: App Transport Security (ATS) and Keychain Services API.
senior LevelPerformanceSecurity & AuthSystem Design
In Simple Words:
- App Transport Security (ATS): Enforces TLS 1.3 with forward secrecy for all HTTP network connections initiated via
URLSession. Plaintexthttp://calls are blocked by default. - Keychain Services: Stores sensitive cryptographic keys and passwords in hardware-encrypted partitions:
- Accessible only when device is unlocked (
kSecAttrAccessibleWhenUnlocked). - Key material survives app reinstallation and device backups.
- Accessible only when device is unlocked (