ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

In my data model I have a `Reflection` which has a many to one to a list of `ReflectionAnswers` and for my form I do a `ForEach` for them. The crash was caused by `ForEach(answer, id: \.self)` , the fix was to use `ForEach(answer, id: \.id)` this blog helped www.simplykyra.com/blog/swiftda...

Jan 19, 2025, 1:59 AM

Record data

{
  "uri": "at://did:plc:d4o2svnvrxd3db33rx6xw432/app.bsky.feed.post/3lg2pzbkcqc2f",
  "cid": "bafyreicb3haeck5owg3u2fre6caqaxuettmm56cc4vukehtsubz2lejraq",
  "value": {
    "text": "In my data model I have a `Reflection` which has a many to one to a list of `ReflectionAnswers` and for my form I do a `ForEach` for them. \n\nThe crash was caused by `ForEach(answer, id: \\.self)` , the fix was to use `ForEach(answer, id: \\.id)`\n\n this blog helped www.simplykyra.com/blog/swiftda...",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://www.simplykyra.com/blog/swiftdata-solving-fatal-errors-and-exc_bad_access-while-handling-entities-on-different-threads/",
        "thumb": {
          "$type": "blob",
          "ref": {
            "$link": "bafkreifftmkq5pu3nzivdaq3ivgvbrpy2o4nueyvnqksiemogn44skurai"
          },
          "mimeType": "image/jpeg",
          "size": 347126
        },
        "title": "SwiftData: Solving Fatal Errors and EXC_BAD_ACCESS While Handling Entities on Different Threads",
        "description": "I've recently switched the app I've been coding from CoreData to SwiftData and, once I sped up some backend code using concurrency, came across an issue where my code kept crashing when creating new e..."
      }
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreieypg3njl74z3sod6pvpsomvo6p7izg6gd6huheu2ew6wcu662dna",
        "uri": "at://did:plc:d4o2svnvrxd3db33rx6xw432/app.bsky.feed.post/3lg2pths7sc2f"
      },
      "parent": {
        "cid": "bafyreieypg3njl74z3sod6pvpsomvo6p7izg6gd6huheu2ew6wcu662dna",
        "uri": "at://did:plc:d4o2svnvrxd3db33rx6xw432/app.bsky.feed.post/3lg2pths7sc2f"
      }
    },
    "facets": [
      {
        "index": {
          "byteEnd": 297,
          "byteStart": 263
        },
        "features": [
          {
            "uri": "https://www.simplykyra.com/blog/swiftdata-solving-fatal-errors-and-exc_bad_access-while-handling-entities-on-different-threads/",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2025-01-19T01:59:28.525Z"
  }
}