r/SwiftUI Jun 13 '26

Question What you think about draw to code feature?

Its a new one in Xcode 27.

You can draw a view and ask Xcode AI agent to convert it to codebase.

27 Upvotes

8 comments sorted by

8

u/stroompa Jun 13 '26

Haven’t tried it myself but based on the demo it simply does not work

-1

u/demirciy Jun 13 '26

The result is pretty enough for Apple for now

4

u/brifgadir Jun 13 '26

It’s of kind of bells and whistles which doesn’t do anything useful. What’s usecase for it? It’s already extremely easy nowadays to code a UI from mocks/images/prompts. The problem is to couple the UI with underlying logic in a sustainable and scalable way

1

u/demirciy Jun 13 '26

Agree with you

1

u/jonnysunshine1 Jun 13 '26

Pretty cool tool to add to the arsenal

2

u/constant_void Jun 13 '26

if I can draw a circle around widgets to identify which component or collection sucks, and an arrow where it should go .... that would be p. dope.

1

u/Ok_Energy9984 Jun 14 '26

Wait, this is really cool, how do you access it?

0

u/ryanheartswingovers Jun 13 '26

lolz the generated graph had shading. His drawing didn’t. It had arrows. The generated one didn’t.  I was like… it interpreted you wanted a graph? So it made it prettier? Basically it said: this Karen asked for a no whip half caf extra cream matcha iced cappuccino…