Does Xcode 26's external AI model can used for code completion , or just chat?

Asked on 06/12/2025

1 search

Xcode 26's external AI models can be used for both code completion and chat. The integration of models like ChatGPT into Xcode allows for coding assistance, where you can ask questions about Swift or your specific project, and the model can provide suggestions or make changes on your behalf. This functionality extends beyond just chat, as it also enhances code completion by using large language models to provide intelligent suggestions based on your project and coding style. You can use models from different providers, and they can run locally on your Mac or on a private network, giving you flexibility and control over the models you choose to use.

For more details, you can refer to the session Platforms State of the Union (29:10) and What’s new in Xcode (10:37).