ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Display a self-updating date and time inside a SwiftUI Text view and prevent the UI from moving as the digits in the date change: nilcoalescing.com/blog/Dynamic... #iOSDev #SwiftUI

Apr 7, 2025, 6:25 AM

Record data

{
  "uri": "at://did:plc:a6pco5evspx7fxkag3omjadp/app.bsky.feed.post/3lm7da7c3fk2h",
  "cid": "bafyreifybgyfsw3fudkfhfdjnsk3xectkwam2tjysuizgopuuwygnjmhle",
  "value": {
    "text": "Display a self-updating date and time inside a SwiftUI Text view and prevent the UI from moving as the digits in the date change: nilcoalescing.com/blog/Dynamic...\n#iOSDev #SwiftUI",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://nilcoalescing.com/blog/DynamicDatesWithMonospacedDigits/",
        "thumb": {
          "$type": "blob",
          "ref": {
            "$link": "bafkreicvrgwnxumgmyicgax3mqit4gefnzmo7xgn5jupuraknllex3hkqy"
          },
          "mimeType": "image/jpeg",
          "size": 159915
        },
        "title": "Dynamic dates with monospaced digits in SwiftUI",
        "description": "Display a self-updating date and time inside a SwiftUI Text view and prevent the UI from moving as the digits in the date change."
      }
    },
    "langs": [
      "en"
    ],
    "facets": [
      {
        "index": {
          "byteEnd": 163,
          "byteStart": 130
        },
        "features": [
          {
            "uri": "https://nilcoalescing.com/blog/DynamicDatesWithMonospacedDigits/",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 171,
          "byteStart": 164
        },
        "features": [
          {
            "tag": "iOSDev",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 180,
          "byteStart": 172
        },
        "features": [
          {
            "tag": "SwiftUI",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      }
    ],
    "createdAt": "2025-04-07T06:25:10.854Z"
  }
}