Paul Hudson on Nostr: You can now read the RGB values of a Color! This makes Codable colors much easier to ...
You can now read the RGB values of a Color! This makes Codable colors much easier to do, because we can ask SwiftUI to resolve any color for a given environment.
Published at
2023-06-16 13:03:29Event JSON
{
"id": "7aad82c1dc6b39a7cb18445aef199e8a81d3e346cea12ff2ff0aceb3297450a4",
"pubkey": "4b686c1107b2b995f920bf40de4296c71eb487228f04db2627a411d6fb4706fd",
"created_at": 1686920609,
"kind": 1,
"tags": [
[
"e",
"bdaef243df71a4be5aeb4de27d230fd999cdd5230002a60d15594049fea61547",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mastodon.social/users/twostraws/statuses/110554029058790738"
]
],
"content": "You can now read the RGB values of a Color! This makes Codable colors much easier to do, because we can ask SwiftUI to resolve any color for a given environment.\n\nhttps://files.mastodon.social/media_attachments/files/110/554/028/329/381/127/original/ce30b48a384cd3f4.png",
"sig": "b7d6b7111d5ee3c208e0c4426ac3416de29db39d6cee4ad5ee5bd9102f912ada2bc2e3a9ff9744f8b3c1e48ab0cf8f892afbf90c7a229cc5f92586881953087a"
}