Helge Heß on Nostr: Careful w/ the #SwiftUI View debugger, it is different to Cocoa. In Cocoa views you ...
Careful w/ the #SwiftUI View debugger, it is different to Cocoa. In Cocoa views you have the drawing depth properly associated w/ the views. In SwiftUI the debugger kinda shows the nesting of the view generation, not the actual layout.
Exemplified in the example with the blue `overlay`. It appears as a background in the view debugger, but actually draws on top of the Text's.
Published at
2024-02-17 10:13:02Event JSON
{
"id": "1e9d7771f492c5e2290a15aa79e0da5d99de752d2522b25e5cb52300118ad85d",
"pubkey": "9bddd4578b658620bdbf06f97fb8f978c08b641d1d0248a613f552d7ef7f709a",
"created_at": 1708164782,
"kind": 1,
"tags": [
[
"t",
"swiftui"
],
[
"proxy",
"https://mastodon.social/users/helge/statuses/111946287183864142",
"activitypub"
]
],
"content": "Careful w/ the #SwiftUI View debugger, it is different to Cocoa. In Cocoa views you have the drawing depth properly associated w/ the views. In SwiftUI the debugger kinda shows the nesting of the view generation, not the actual layout.\nExemplified in the example with the blue `overlay`. It appears as a background in the view debugger, but actually draws on top of the Text's.\n\nhttps://files.mastodon.social/media_attachments/files/111/946/275/001/916/951/original/3a74234c8686011f.png",
"sig": "f103fa11400b036c64475b84c20ec58857704d4b47cd7295f873d36ebb4308fda98d5b8fd54c6f6aa9aa289cbbdf221ada5e875a6109b2053282f23b4dc7b30f"
}