Experimental browser for the Atmosphere
SwiftUI has hierarchical background styles like background.secondary, available as instance properties on ShapeStyle since iOS 17, so we no longer need to get these styles from UIColor unless we have to support older versions: nilcoalescing.com/blog/Hierarc... #iOSDev
Apr 14, 2025, 11:21 AM
{ "uri": "at://did:plc:a6pco5evspx7fxkag3omjadp/app.bsky.feed.post/3lmrh2k44d22h", "cid": "bafyreiaovjnyvsjlo5rtsgoabmnpbqcyzpcge3dtqmflszw3rosk4breie", "value": { "text": "SwiftUI has hierarchical background styles like background.secondary, available as instance properties on ShapeStyle since iOS 17, so we no longer need to get these styles from UIColor unless we have to support older versions: nilcoalescing.com/blog/Hierarc...\n#iOSDev", "$type": "app.bsky.feed.post", "embed": { "$type": "app.bsky.embed.external", "external": { "uri": "https://nilcoalescing.com/blog/HierarchicalBackgroundStyles/", "thumb": { "$type": "blob", "ref": { "$link": "bafkreigwjg2shh6s64vpmltquvbrclrm32fwqfmuoleoc2dljcdknwr7xa" }, "mimeType": "image/jpeg", "size": 496920 }, "title": "Hierarchical background styles in SwiftUI", "description": "Use the new instance properties of the ShapeStyle in iOS 17 to access hierarchical system background styles, such as secondary and tertiary background." } }, "langs": [ "en" ], "facets": [ { "index": { "byteEnd": 260, "byteStart": 227 }, "features": [ { "uri": "https://nilcoalescing.com/blog/HierarchicalBackgroundStyles/", "$type": "app.bsky.richtext.facet#link" } ] }, { "index": { "byteEnd": 268, "byteStart": 261 }, "features": [ { "tag": "iOSDev", "$type": "app.bsky.richtext.facet#tag" } ] } ], "createdAt": "2025-04-14T11:21:31.124Z" } }