Łukasz Rutkowski on Nostr: I have observed a weird SwiftUI behavior when combining NavigationStack, paged ...
I have observed a weird SwiftUI behavior when combining NavigationStack, paged TabView and List.
For some reason until I add UIView to hierarchy content appears behind toolbar which doesn't react to scroll events.
Anyone has idea what could be going on behind the scenes. Why UIView resolves my issue?
#SwiftUI #UIKit #iOS
Published at
2024-11-12 17:20:33Event JSON
{
"id": "e54e21b6028ddd4a9fb4ab789cb8d3e17cad5b9e17476c29d9355b869323dec7",
"pubkey": "d100dbdd94fb2ffe2342e71946698564335c0e89d3570adfa1561b8548e3bf2e",
"created_at": 1731432033,
"kind": 1,
"tags": [
[
"t",
"swiftui"
],
[
"t",
"UIKit"
],
[
"t",
"iOS"
],
[
"proxy",
"https://mastodon.world/users/luckkerr/statuses/113471129726577817",
"activitypub"
]
],
"content": "I have observed a weird SwiftUI behavior when combining NavigationStack, paged TabView and List.\n\nFor some reason until I add UIView to hierarchy content appears behind toolbar which doesn't react to scroll events.\n\nAnyone has idea what could be going on behind the scenes. Why UIView resolves my issue?\n\n#SwiftUI #UIKit #iOS\n\nhttps://s3.eu-central-2.wasabisys.com/mastodonworld/media_attachments/files/113/471/114/575/723/416/original/af25c10b9555b399.png\n\nhttps://s3.eu-central-2.wasabisys.com/mastodonworld/media_attachments/files/113/471/114/564/491/914/original/4866abb833000041.png\n\nhttps://s3.eu-central-2.wasabisys.com/mastodonworld/media_attachments/files/113/471/114/565/206/522/original/cc9ae2c90f962e51.png",
"sig": "258f89462b2f43109e5ede1ded7e44be4a36ba300cbfca2347d915b8a28040111ad02fec69ebb89592c14a0f8204c7cfa5681f3ab8d466c11925d2a8e7672e65"
}