Nick Lockwood on Nostr: Xcode 15 automatically generates ImageResource constants from your XCAssets. You can ...
Xcode 15 automatically generates ImageResource constants from your XCAssets. You can use them directly in SwiftUI images 🤯
let image = Image(.assetName)
Published at
2023-06-06 14:07:07Event JSON
{
"id": "cfdbcd137e3a9114a56b1445e2314806beb159430abeab71bdf8e0ca4698e0d3",
"pubkey": "8f2e1774c6623534e7978213059ca9d67266a25fba6c772f785e2cfc554e2753",
"created_at": 1686060427,
"kind": 1,
"tags": [
[
"mostr",
"https://mastodon.social/users/nicklockwood/statuses/110497656201956150"
]
],
"content": "Xcode 15 automatically generates ImageResource constants from your XCAssets. You can use them directly in SwiftUI images 🤯\n\nlet image = Image(.assetName)",
"sig": "28f5d2713da498d3e17ac6f35201d2baacb40586476196ac07e4a5eec2d412b1672f83a31ec8c4c0b57357a41c4981ae708ef5944ffe78f7a3a361b7a5daac6f"
}