Back

Enum

  • 0
  • Databases
  • General
  • Apple
BSM
31 Mar, 2025, 16:37

How can I decode a attribute that I set as enum in swift?

I tried creating an enum variable in swift, but i got a json decoidng error. I looked through the docs, but count find anything.

TL;DR
Developers are having trouble decoding a JSON attribute set as an enum in Swift. The issue might be related to how the enum is defined or how the JSON data is structured. Double-check your enum implementation and ensure it matches the JSON structure.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more