ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

Take a closer look at AttributedString in Swift, including its attribute scopes, how system frameworks like Foundation, UIKit, AppKit, and SwiftUI interpret them, and how to define your own attributes for custom text styling: nilcoalescing.com/blog/Attribu... #iOSDev #SwiftLang

May 3, 2025, 9:43 AM

Record data

{
  "uri": "at://did:plc:a6pco5evspx7fxkag3omjadp/app.bsky.feed.post/3lob2hdc2a22f",
  "cid": "bafyreigcprxmsr4nv3hjwvgzmhnq6hkkgt66hcy2t7g464wq6clj6esgjq",
  "value": {
    "text": "Take a closer look at AttributedString in Swift, including its attribute scopes, how system frameworks like Foundation, UIKit, AppKit, and SwiftUI interpret them, and how to define your own attributes for custom text styling:\nnilcoalescing.com/blog/Attribu...\n#iOSDev #SwiftLang",
    "$type": "app.bsky.feed.post",
    "embed": {
      "$type": "app.bsky.embed.external",
      "external": {
        "uri": "https://nilcoalescing.com/blog/AttributedStringAttributeScopes/",
        "thumb": {
          "$type": "blob",
          "ref": {
            "$link": "bafkreigo53mdrupig5v7zicsxbwrh2xjluezn2p2uyunaspzgkk6prequm"
          },
          "mimeType": "image/jpeg",
          "size": 322860
        },
        "title": "AttributedString attribute scopes",
        "description": "Take a closer look at AttributedString type and different attribute scopes it can contain. Explore how Apple system frameworks interpret available attributes and how to create your own."
      }
    },
    "langs": [
      "en"
    ],
    "facets": [
      {
        "index": {
          "byteEnd": 259,
          "byteStart": 226
        },
        "features": [
          {
            "uri": "https://nilcoalescing.com/blog/AttributedStringAttributeScopes",
            "$type": "app.bsky.richtext.facet#link"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 267,
          "byteStart": 260
        },
        "features": [
          {
            "tag": "iOSDev",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      },
      {
        "index": {
          "byteEnd": 278,
          "byteStart": 268
        },
        "features": [
          {
            "tag": "SwiftLang",
            "$type": "app.bsky.richtext.facet#tag"
          }
        ]
      }
    ],
    "createdAt": "2025-05-03T09:43:48.984Z"
  }
}