Christian Selig on Nostr: SwiftUI question: I'm trying to make a slider that expands on touch. How do I make it ...
SwiftUI question: I'm trying to make a slider that expands on touch. How do I make it so the progress part's *height* animates (instead of jumping), but the *width* stays instantly responsive (no animation)?
No matter where I put the .animation() modifiers I cannot seem to get it, haha
{
"id":"08a6b338ee3f43d614a003397c8032a7353280afa4e5c2aa20f655629d1166c4",
"pubkey":"de6adda4d139627ce8f9cf05ef27c7cd1de9895363e5f303667f761bec318716",
"created_at":1707769825,
"kind":1,
"tags": [
[
"proxy",
"https://mastodon.social/users/christianselig/statuses/111920403265826138",
"activitypub"
]
],
"content":"SwiftUI question: I'm trying to make a slider that expands on touch. How do I make it so the progress part's *height* animates (instead of jumping), but the *width* stays instantly responsive (no animation)?\n\nNo matter where I put the .animation() modifiers I cannot seem to get it, haha\n\nGist: https://gist.github.com/christianselig/eda075422436f4e4934565da001455d4\n\nhttps://files.mastodon.social/media_attachments/files/111/920/402/569/838/003/original/2ce4ead7380e004a.mp4",
"sig":"5dca2ce2a75461c92e04d49fce0fa88bea336f9e9e1c3f56387492b97da1badce1878da323025218f81c575189ae04e97e6dfcd0734b7b20ed358d099e545f96"
}