CaliCoding on Nostr: The new #SwiftUI @.Entry macro in Xcode 16 is a perfect use case for #swift macros. ...
The new #SwiftUI @.Entry macro in Xcode 16 is a perfect use case for #swift macros. Expanding it reveals the simple and sensible implementation below. Such a great way to eliminate needless boilerplate. And since it's a macro I believe it's back portable to... well, anything.
Published at
2024-06-17 00:20:16Event JSON
{
"id": "2c3b461efd30ecbc2a240e79d0ecb378bb2af4df0d40d0450603144e7d93035d",
"pubkey": "9951c3f235bd9ae0c33300a160b45a9e81ae58401ac14cef5b9e64da7b071da5",
"created_at": 1718583616,
"kind": 1,
"tags": [
[
"t",
"swiftui"
],
[
"t",
"swift"
],
[
"proxy",
"https://mastodon.social/users/calicoding/statuses/112629095870689187",
"activitypub"
]
],
"content": "The new #SwiftUI @.Entry macro in Xcode 16 is a perfect use case for #swift macros. Expanding it reveals the simple and sensible implementation below. Such a great way to eliminate needless boilerplate. And since it's a macro I believe it's back portable to... well, anything.\n\nhttps://files.mastodon.social/media_attachments/files/112/629/095/621/835/431/original/9d12809b7c50c244.png",
"sig": "04c3a72bb2b8e4b0ea0abaf1692d98e9a18509193395331730d7a4dde89e34cecf3d9adb9ccadc49a6fc21957617720331bf0f111597c760c4f700003aaa74ad"
}