Ancestors

Toot

Written by Matt Corey on 2025-01-21 at 22:49

Been fighting with animations related to resizing cells in a SwiftUI List this afternoon, and came across a surprising... 'fix’.

Instead of composing the cells from VStacks, I composed them of Scrollviews. And it's not bad!?

I know not using a List will fix this, but that's not an option.

=> View attached media | View attached media

=> More informations about this toot | More toots from matt1corey@iosdev.space

Descendants

Written by Matt Corey on 2025-01-21 at 22:49

Filling a List with a bunch of Scrollviews seems bad. Anyone else dealt with this issue in a different way?

Alternately, is there a way to apply this gradient background across an entire Section? Using .listRowBackground doesn't work, as the gradient is clipped on each row.

=> More informations about this toot | More toots from matt1corey@iosdev.space

Written by Matt Corey on 2025-01-22 at 01:57

Hrmph - those two identical images were supposed to be movies. Let's try this again...

=> View attached media

=> More informations about this toot | More toots from matt1corey@iosdev.space

Written by Matt Corey on 2025-01-22 at 01:58

Aaaand the smoother animations, courtesy of weird ScrollViews

=> View attached media

=> More informations about this toot | More toots from matt1corey@iosdev.space

Written by GetSwifty on 2025-01-22 at 02:23

@matt1corey generally I’ve found a LazyVStack to work better than Lists 🫠

=> More informations about this toot | More toots from GetSwifty@iosdev.space

Written by Matt Corey on 2025-01-22 at 02:24

@GetSwifty yeah I know, but List includes a lot of other features that I’m taking advantage of here 🤷‍♂️

=> More informations about this toot | More toots from matt1corey@iosdev.space

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113868784583607539
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
310.132485 milliseconds
Gemini-to-HTML Time
2.30118 milliseconds

This content has been proxied by September (3851b).