Apple has recently released two key studies in the field of machine learning, showcasing its latest advancements in using large language models (LLMs) to simplify UI development and enhance image security reviews.

SQUIRE: Say Goodbye to "Black Box" Design

To address the pain points of "poor controllability and difficult fine-tuning" in the AI-generated UI process, Apple introduced a system called SQUIRE. This system is powered by GPT-4o, and its core innovation lies in the Slot-Query Intermediate Representation.

Differing from tools that directly generate static designs, SQUIRE first generates a customizable component tree. Developers can modify fonts, add layers, or replace specific elements like building blocks before delivering the final code. This "white-box" process transforms the time-consuming "prompt trial-and-error cycle" into an intuitive interactive collaboration. Once the prototype is confirmed, SQUIRE can convert it into HTML and CSS code with one click. In testing with 11 front-end developers, the tool received high praise for its ease of use and controllability.

QQ20260408-101055.jpg

SafetyPairs: Giving Visual AI a "Protective Suit"

In terms of image generation safety, Apple proposed the SafetyPairs framework. By using counterfactual image generation technology, researchers created 1510 pairs of extremely similar images that differ in key features (for example: one image shows a building normally, while another shows the building on fire).

This dataset aims to precisely identify weaknesses in visual language models' safety ratings. Through this "spot the difference" type of training, Apple is able to develop more efficient protective models. This technology is expected to further enhance the safety level of local AI tools such as Image Playground on iPhone.

QQ20260408-101102.jpg

In the latest Xcode 26.3, Apple has already introduced support for agentic coding tools. The industry generally expects that the component-based generation approach represented by SQUIRE is highly likely to be officially integrated into Apple's official toolchain at the WWDC2026 event on June 8th.