Paul Haddad :tapbots_logo: on Nostr: >= iOS 17 Widget ?: I have X items of dynamic height in a VStack. I want to show only ...
>= iOS 17 Widget ?: I have X items of dynamic height in a VStack. I want to show only the items that fit centered within the widget.
I have some crazy old code that uses hidden views in a ZStack + GeometryReader + a bunch of math to currently accomplish this, and I hate it. Surely there’s got to be a better way now?
{
"id":"45830b40b8a60cf6b3f3a5a61fd76d7b6751e6acada48c45c306191f3c76f4d5",
"pubkey":"05846076ae1cedb109de8aff60ad6fb03f0750669c8eaf2a16a30ca5b9a6dc70",
"created_at":1726186734,
"kind":1,
"tags": [
[
"proxy",
"https://tapbots.social/users/paul/statuses/113127373857911172",
"activitypub"
]
],
"content":"\u003e= iOS 17 Widget ?: I have X items of dynamic height in a VStack. I want to show only the items that fit centered within the widget. \n\nI have some crazy old code that uses hidden views in a ZStack + GeometryReader + a bunch of math to currently accomplish this, and I hate it. Surely there’s got to be a better way now?\n\nhttps://tapbots.social/system/media_attachments/files/113/127/373/647/035/026/original/1d980704401ceed6.mp4",
"sig":"20ce1d45b1ef7f7728eb2e8ad97cb3e0b49e8e7c25047d20c9023ddaa68579036f48e5dc45a4a889fcf9246332845b4934c9a20746ad212631f15f0f3fd59de9"
}