Paul Hudson on Nostr: This feels like the world's tiniest SwiftUI tip, but in case it helps: the ...
This feels like the world's tiniest SwiftUI tip, but in case it helps: the saturation() modifier can go beyond 1.0 to oversaturate colors. This is helpful when saturation has been lost, like with the blur effect shown here – it looks washed out with saturation 1, but great at 2+.
{
"id":"386b9e9d0579bbfb30c229efb1ac2e81c2a670555b2d4eb6df5def237799bf53",
"pubkey":"4b686c1107b2b995f920bf40de4296c71eb487228f04db2627a411d6fb4706fd",
"created_at":1698526054,
"kind":1,
"tags": [
[
"proxy",
"https://mastodon.social/users/twostraws/statuses/111314603501455122",
"activitypub"
]
],
"content":"This feels like the world's tiniest SwiftUI tip, but in case it helps: the saturation() modifier can go beyond 1.0 to oversaturate colors. This is helpful when saturation has been lost, like with the blur effect shown here – it looks washed out with saturation 1, but great at 2+.\n\nhttps://files.mastodon.social/media_attachments/files/111/314/598/191/503/269/original/147d6b693f93d6af.mp4",
"sig":"73b9ad942248ffe6c4d3a6ef9f03560116bce76d37b355f1d5b68ac8654a347447aabc9dae4ca0984352e27a91966b633efca40e1cbc4119e7fecaf9be9e0b27"
}