Timeline for SwiftUI Create a Custom Segmented Control also in a ScrollView
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 7, 2021 at 19:25 | comment | added | jnpdx | For those that come across this in the future, because the measurement for the views is only taken on onAppear, it'll stop functioning if the layout changes. Solution here: stackoverflow.com/a/66512870/560942 | |
| Oct 10, 2020 at 0:49 | comment | added | andrés | Amazing answer. I would just replace the default animation with .easeInOut(duration: 0.2) to look even more similar to Picker animation | |
| Mar 26, 2020 at 1:06 | history | bounty awarded | Learn2Code | ||
| Mar 25, 2020 at 21:16 | vote | accept | Learn2Code | ||
| Mar 25, 2020 at 19:23 | comment | added | nine stones | To scroll the horizontal ScrollView: I actually just now stumbled over another SO post from the same user: stackoverflow.com/questions/60855852/… | |
| Mar 25, 2020 at 18:39 | comment | added | nine stones | The view --kinda-- still works when you wrap in a horizontal ScrollView. But it, of course, doesn't adjust the scroll position which makes it not fully useful. Maybe you can gather some ideas on how to do it from this post: stackoverflow.com/questions/57258846/… | |
| Mar 25, 2020 at 18:27 | comment | added | Learn2Code | this is exactly what I was referring to. Question what if I needed it in horizontal scroll view as I had more options that the three i mentioned and I wanted to to span past the screen size. | |
| Mar 25, 2020 at 18:25 | vote | accept | Learn2Code | ||
| Mar 25, 2020 at 21:16 | |||||
| Mar 25, 2020 at 17:50 | history | answered | nine stones | CC BY-SA 4.0 |