Thomas Ricouard on Nostr: Using the new onScrollTargetVisibilityChange #SwiftUI API on iOS 18, here is how I ...
Using the new onScrollTargetVisibilityChange #SwiftUI API on iOS 18, here is how I would do an infinitely scrolling view of content. It's actually very elegant to how I was doing it previously.
{
"id":"f0d2aab0e822ebfb33af8a0399645d049b62692f466e8ce901f3c38cfd3693f6",
"pubkey":"dd6604295ed6632cf64465c8aaa87024dead0a9c3de3c90131ce3cf47177a490",
"created_at":1719227798,
"kind":1,
"tags": [
[
"t",
"swiftui"
],
[
"proxy",
"https://mastodon.social/users/dimillian/statuses/112671312984944907",
"activitypub"
]
],
"content":"Using the new onScrollTargetVisibilityChange #SwiftUI API on iOS 18, here is how I would do an infinitely scrolling view of content. It's actually very elegant to how I was doing it previously.\n\nhttps://files.mastodon.social/media_attachments/files/112/671/312/264/541/848/original/bea415d4d326057e.mp4",
"sig":"002a5fb3752c4e671a52db77a213a0599e0879f0dd6e6520aacab278c94d50f5925eb0ca2f7696c00ebe1990c6f109aa8e0615e2ff9e6d872034ebbb64c3d07a"
}