While Xcode's Swift Assist offers a generative coding assistant via private cloud servers, developers have the option to use third-party tools like ChatGPT and GitHub Copilot. However, they must consider the risks of exposing code to third-party AI tools. Apple assures users that code is not stored or used for training purposes. More features for Swift Assist may be announced at Apple's WWDC in June, but until then, developers can utilize ChatGPT alongside Apple's built-in tool to address coding challenges.
Key takeaways:
- The ChatGPT app for macOS now allows users to write and edit code directly in Xcode, competing with Apple's Swift Assist and GitHub Copilot.
- The update includes an "auto-apply" mode, enabling ChatGPT to edit code without additional permission prompts.
- The feature is available to ChatGPT Plus, Pro, and Team subscribers, with other user tiers gaining access later.
- Developers must consider the risks of using third-party AI tools, as Apple assures that Swift Assist does not store or use code for training.