ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

The solution to this very stupid problem was to add a Color extension for converting to and from hex and then storing the hex with my data. which is really stupid because storing colors and using hex codes is one of those things your ui tooling should just do. blog.eidinger.info/from-hex-to-...

May 3, 2025, 3:43 AM

Record data

{
  "uri": "at://did:plc:nxp4e4iayqrrl6rdmns6lkxk/app.bsky.feed.post/3loagcb2vj22l",
  "cid": "bafyreicqksi5d5hy2clj2m5msjto7hmffzzngmujjaixnc4jdcfnbojwq4",
  "value": {
    "text": "The solution to this very stupid problem was to add a Color extension for converting to and from hex and then storing the hex with my data.\n\nwhich is really stupid because storing colors and using hex codes is one of those things your ui tooling should just do.\n\nblog.eidinger.info/from-hex-to-...",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://blog.eidinger.info/from-hex-to-color-and-back-in-swiftui",
        "thumb": {
          "$type": "blob",
          "ref": {
            "$link": "bafkreidki3xwr66jbtltx5cpt6waxmy2fezexrmi4rqxgopaw3yi4bmxw4"
          },
          "mimeType": "image/jpeg",
          "size": 610492
        },
        "title": "From Hex to Color and Back in SwiftUI",
        "description": "How to convert SwiftUI Color into Hex and from Hex into Color with help of UIColor or CGColor respectively. Extension implementations are shared."
      }
    },
    "langs": [
      "en"
    ],
    "reply": {
      "root": {
        "cid": "bafyreiepxp55ufcktse3rmg6u2jdzjul55vtiblyqtsyyuufjvqktt265y",
        "uri": "at://did:plc:nxp4e4iayqrrl6rdmns6lkxk/app.bsky.feed.post/3loacrne7bc2d"
      },
      "parent": {
        "cid": "bafyreiepxp55ufcktse3rmg6u2jdzjul55vtiblyqtsyyuufjvqktt265y",
        "uri": "at://did:plc:nxp4e4iayqrrl6rdmns6lkxk/app.bsky.feed.post/3loacrne7bc2d"
      }
    },
    "facets": [
      {
        "index": {
          "byteEnd": 297,
          "byteStart": 263
        },
        "features": [
          {
            "uri": "https://blog.eidinger.info/from-hex-to-color-and-back-in-swiftui",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      }
    ],
    "createdAt": "2025-05-03T03:43:04.045Z"
  }
}