Skip to main content
8 votes
2 answers
269 views

When selecting items programmatically in a ListView, I want the scroll to behave like native keyboard navigation — scroll only when the selected item is outside the visible area. Using listView....
SilverCube's user avatar
  • 1,288
1 vote
1 answer
35 views

First, progamming is a hobby for me, not a profession. The sample code below creates some artificial data in a dictionary that I want to access key by key when the ScrollView container is overscrolled....
speckles's user avatar
Best practices
0 votes
2 replies
85 views

I need some good advice please. I have a scrollview with a TableLayout. The table consists of 5 columns so every TableRow consists of 5 Textviews. It's working very well, but I would like to add more ...
Tomas F.'s user avatar
  • 308
1 vote
1 answer
186 views

I have a SwiftUI view with nested ScrollViews — a vertical ScrollView containing a horizontal ScrollView that displays a grid of cells (columns A-K, rows 1-100). I want to programmatically scroll to a ...
Abhi Kapoor's user avatar
0 votes
1 answer
126 views

I’m building a SwiftUI “scoreboard” style UI: a ScrollView with a single pinned header at the top. As you scroll, the pinned header should update to show the currently active section (NBA/NHL/etc), ...
GILL's user avatar
  • 67
1 vote
1 answer
163 views

I'm trying to create a ScrollView with content at the top that has the following requirements: The content (1. VStack) should be in a ZStack with a background color (or image) The background should ...
user9718615's user avatar
1 vote
1 answer
108 views

I'm currently setting up a scrollable selection of options with the intent that, when the user stops scrolling, the one closest to the centre is properly centred. However it just doesn't seem to be ...
Ash's user avatar
  • 9,461
0 votes
0 answers
54 views

I'm developing an Android application (Java) using the standard layout structure: CoordinatorLayout + AppBarLayout + NestedScrollView. I have a long form where some text fields are positioned at the ...
Mr. Dandomi's user avatar
0 votes
1 answer
107 views

My buttons work standalone, but when embedded in NavigationStack and other views, the play/pause buttons work sometimes then stops working other times. I've tried: • Checked onAppear • Verified ...
user32104631's user avatar
0 votes
2 answers
278 views

Want B over A in Zstack, Offset of scroll needs to be 200 (height of A). Either B is pinned to top and has 200 offset or B starts at 200 y position and as we scroll up its y also changes, so after 200 ...
Ankit Srivastava's user avatar
2 votes
0 answers
188 views

I'd like to achieve a layout similar to the one shown in the Apple Fitness app. When I insert a ScrollView into a TabView, everything works fine, but if I try to add a NavigationStack to wrap the ...
HAS's user avatar
  • 45
0 votes
0 answers
98 views

I need to render a wheel picker inside a ScrollView in my Expo app. I tried using WheelPickerExpo but I keep getting this error: VirtualizedLists should never be nested inside plain ScrollViews with ...
Zafersiar Konyar's user avatar
1 vote
2 answers
371 views

I have simple setup to reproduce this: struct ContentView: View { var body: some View { NavigationStack { VStack { Rectangle() ...
MegaManX's user avatar
  • 8,920
0 votes
1 answer
275 views

The following code will render a list of items and a button to shuffle them and change their height withAnimation. If you scroll down and shuffle it you will eventually see glitches in the animation, ...
styke's user avatar
  • 2,184
0 votes
0 answers
52 views

The following code works properly, ensuring the list is scrolled at the correct ID when first rendered: import SwiftUI struct DataItem: Identifiable { let id: Int let height: CGFloat init(id: ...
styke's user avatar
  • 2,184

15 30 50 per page
1
2 3 4 5
471