How Apple's on-device and server foundation models power Apple Intelligence, how the Foundation Models framework works in iOS 26+ / macOS 26+ / iPadOS 26+ / visionOS 26+, and practical Swift examples using SystemLanguageModel, @Generable, guided generation, and tool calling.