Zach Waugh on Nostr: In a sidebar with NavigationLink on macOS, you get automatic behavior where images ...
In a sidebar with NavigationLink on macOS, you get automatic behavior where images and titles use the correct color depending on selection state if you use a Label. Anyone know how to get that behavior with a custom view? There has to be some magic .foregroundStyle you can use?
Published at
2024-08-22 14:36:16Event JSON
{
"id": "394aa67f11dcf7b755f5c84f0922858a0a76333e45779644b2af4e5a2d0b4a72",
"pubkey": "7e269d2ddfb2fdebc7d1a9d0e0924872d22ef1f8aa72076b3e490e835b7fadd3",
"created_at": 1724337376,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/zachwaugh/statuses/113006174327085414",
"activitypub"
]
],
"content": "In a sidebar with NavigationLink on macOS, you get automatic behavior where images and titles use the correct color depending on selection state if you use a Label. Anyone know how to get that behavior with a custom view? There has to be some magic .foregroundStyle you can use?\n\nhttps://files.mastodon.social/media_attachments/files/113/006/174/060/997/060/original/faf3e8c3193229b2.png",
"sig": "1c1dfacfc8bea768a8de87d1b27f7e9dcc5fe97e37cc8faabe506136c845510cca0e998a2597aadbc3205522da5b980c892fed4f961795313f98c0ca4e80c5b7"
}