As reported by 9to5Mac, Apple's research team has recently released a study detailing an experimental AI tool called SQUIRE. This tool is designed to tackle the challenges of uncontrollability that often plague AI programming tools when it comes to interface generation. SQUIRE introduces a groundbreaking concept known as 'Slot Query Intermediate Representation' (SquireIR), which models interfaces as a hierarchical tree structure composed of specific 'slots' or components.
Developers can iteratively fill in the functional gaps within this component tree by using natural language prompts. The system, in turn, generates multiple alternatives for each specific slot, allowing for flexibility and creativity. With a simple click, developers can update both the preview and the underlying code in real-time, streamlining the development process.
This innovative mechanism ensures that each modification is precisely scoped to the target area, effectively sidestepping the common issue of 'over-modification' that can occur with large language models. In user research involving 11 front-end developers, SQUIRE was shown to significantly enhance the overall development experience, offering a more controlled and efficient approach to AI-assisted interface design.
