The new Xcode 16 AI autocomplete tech is actually really slick when it has contextual awareness.

I'm converting a file from Go into Swift, and I have the Go language code commented out.

As I type the Swift types (e.g. struct MyStruct) it's actively autocompleting types that match Go definitions that are commented out but with the correct Swift types.

This example just has naive Int types, but the one I actually have has enums that are mapping really nicely

@b3ll Hmm, I wonder if it can do things like quicktype. If I paste a JSON file in as a comment, maybe it can construct a model type?
@calicoding @b3ll I've had good success with copilot in vsc pasting response definitions and it practically generating a matching dataclass representing the response
@alex @calicoding yeah that makes sense, given it's all server-side with tons of GPUs at its disposal. The more impressive bit is how Xcode is doing this purely locally (in near realtime)