Agents & coding · · first reported by ITmedia AI+
“No data leaks to external AI”: A few lines of code to implement on-device AI in iPhone apps
This opening installment in a Swift tutorial series introduces Apple Intelligence and explains how developers can add its capabilities to iPhone, iPad, and Mac apps. It describes the Foundation Models framework, which lets Swift apps use Apple’s on-device language model for tasks such as text generation and summarization without sending prompts to an external AI service. The article notes that Apple Intelligence features are available in operating systems including iOS 18, while more demanding requests may use Apple’s Private Cloud Compute, and ChatGPT integration is also available. It outlines three ways to work with the features: Foundation Models for language tasks, App Intents for making app functions and data available through Siri and other system features, and Image Playground for generating images. The article then begins a SwiftUI example in which a prompt is sent to a language-model session and the response is displayed in an app. It emphasizes choosing the framework and API that fit the intended task, and cautions that simulator behavior may differ from using a supported device.
How we know Single sourceSingle sourceOnly one source so far. Not a warning: many scoops start here. The label updates on its own when confirmation arrives.
checked · updates as sources arriveSingle source: only ITmedia AI+ so far.
Crunch Score shows how loud a story is. Sourcing shows how well it is backed. Checked automatically, with AI comparing the reports.