nerdsupremacist / Graphaello

A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL

Home Page:https://graphaello.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graphaello Buildtime error: Keyword 'repeat' cannot be used as an identifier

satorusaka opened this issue · comments

The API I'm using has "repeat" as a field, which is a swift reserved keyword.

Graphaello.swift:

...
case repeat = "REPEAT"   // ".../AL/Graphaello.swift:4222:18: Keyword 'repeat' cannot be used as an identifier here"
...

Theres will always be a swift compiler error on Buildtime using that API.

A fix would be to use backticks to escape the keyword.

Thanks for the heads up.
Soon the new release should be up: https://github.com/nerdsupremacist/Graphaello/actions/runs/1078551590

Please let mw know if it still doesn't work.
(PS: I accidentally closed the issue when I mentioned it in the commit message. I won't close it until I know that it works for sure)

The fix worked, thanks!