7,061 questions
-1
votes
0
answers
34
views
Smooth page scrolling with drag gesture
The issue I'm having is that, even though scrolling with the trackpad and the drag gesture both work to flip through pages in the scrollview, the animation when landing on a page is jerky and not ...
0
votes
2
answers
123
views
ScrollView behaviour
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 ...
1
vote
0
answers
105
views
How can I fix the broken layout with a ScrollView inside a TabView that is inside a NavigationStack in SwiftUI?
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 ...
0
votes
0
answers
64
views
How to put a wheel picker inside a ScrollView in Expo?
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 ...
1
vote
2
answers
146
views
Large navigation title scrolls with ScrollView, even if it should not
I have simple setup to reproduce this:
struct ContentView: View {
var body: some View {
NavigationStack {
VStack {
Rectangle()
...
0
votes
1
answer
144
views
Buggy ScrollView + LazyVStack animation - is it fixable?
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, ...
0
votes
0
answers
43
views
Cannot render ScrollView + VStack + ScrollPosition correctly scrolled initially
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: ...
1
vote
1
answer
183
views
iOS 26: Scroll indicator falls outside .popover content
When showing a popover:
struct ValueRowView<Content: View, PopoverContent: View> : View
{
let label: String
let value: Content
@State private var showPopover: Bool = false
let ...
0
votes
1
answer
84
views
SwiftUI: stop scrolling behind sticky header while using sections
I've three views which I've added in a LazyVStack in a ScrollView. My intention is to stick RewardsTabItems to top and not let RewardsTabContainer scroll behind RewardsTabItems. I have achieved the ...
0
votes
0
answers
40
views
ScrollView not scrolling in React Native when using stack navigation
I have this main component:
export default function AppNavigator() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="test" component={...
3
votes
2
answers
155
views
ScrollView does not allow the view behind it to be clicked even if there is nothing there
I have a very basic view that has a background (Color.red) and some content inside a ScrollView. The view worked great until I noticed something. After selecting the text field and tappint at the ...
1
vote
1
answer
125
views
ScrollView contents below navigation bar
I'm struggling with the new edge-to-edge display introduced by default with SDK 36. My scroll view contents are behind the navigation bar even when scrolled to the bottom.
I had a look at the "...
0
votes
2
answers
66
views
Buttons inside horizontal ScrollView doesn't response
I write project in react-native and have weird issue.
in my home page i have horizontal ScrollView, and inside it components that contain buttons, but the buttons not work. e.g. pressing on the ...
0
votes
0
answers
107
views
React Native Modal not working when I open it from a ScrollView
I'm building a song-organizing component for my app in React Native and I'm trying to use the native Modal component. The songs are listed in a ScrollView. The app allows the user to delete songs one-...
0
votes
2
answers
120
views
Dynamic height of elements
Here is my problem:
I have a ScrollView with a list of elements:
ScrollView {
VStack(spacing: 3) {
ForEach(testObjects) { obj in
ObjItem(obj: obj)
}
}
}
The ...
1
vote
1
answer
571
views
Content inside @gorhom/bottom-sheet is not scrolling
I am using @gorhom/bottom-sheet in my React Native application to display additional details. The bottom sheet itself works perfectly—it expands and collapses as expected. However, the content I'm ...
1
vote
1
answer
73
views
CollectionView inside CarouselView doesn't scroll in Android (MAUI)
I'm trying to implement similar functionality to how Gmail and Outlook apps works, e.g. user can swipe left/right to navigate between emails and inside email you can also horizontally scroll ...
2
votes
0
answers
135
views
.NET MAUI ScrollToAsync not working correctly on iOS when Entry is focused (keyboard overlap issue)
I'm building a login screen in .NET MAUI and using a ScrollView to allow vertical scrolling. On Android, everything works fine — when the user taps on the Entry (email field), the screen scrolls and ...
2
votes
1
answer
318
views
TextInput losing focus when keyboard opens in React Native
I'm working with React Native, and I have a part of my app that contains some input fields inside a scrollable screen. When I tapped on a field, it would gain focus, but after scrolling, the field ...
0
votes
1
answer
60
views
ScrollView component is not working properly inside Pressable and TouchableWithoutFeedback
I have customize my own modal in react native. Here is the code i have written.
<Modal
animationType="slide"
transparent={true}
visible={visible}
onRequestClose={onDismiss}
...
0
votes
0
answers
56
views
WebView inside Grid and wrapped in ScrollView issue in iOS
I've a following XAML which works in Android, but not in iOS:
<ScrollView HorizontalScrollBarVisibility="Never">
<Grid RowDefinitions="Auto,*">
...
2
votes
1
answer
65
views
full screen height flatlist items
I am trying to implement a FlatList with full screen size items, but haven't been able to do it without manually setting the items height based on the available screensize and I was wondering if it ...
2
votes
1
answer
378
views
React Native Reanimated: useScrollViewOffset not working with stickyHeaderIndices and absolutely positioned views
I'm trying to create an animated header that moves based on scroll position using React Native Reanimated, but the useScrollViewOffset hook isn't tracking scroll events properly when combined with ...
0
votes
0
answers
30
views
FlatList inside ListHeaderComponent — onEndReached not firing (infinite scroll issue)
I'm trying to implement infinite scroll in a FlatList (let’s call it NestedList) that is rendered as the ListHeaderComponent of a parent FlatList (MainList) in React Native.
⚙️ What I'm trying to do:
...
0
votes
1
answer
223
views
SwiftUI ScrollView - Animation of snapping when scrollTargetBehavior is `.paging` or `.viewAligned(limitBehavior: .alwaysByOne)`
I have a basic paged ScrollView using scrollTargetBehavior as .viewAligned(limitBehavior: .alwaysByOne) or .paging. It is a full screen vertical pager i.e.
GeometryReader { geo in
ScrollView(....
2
votes
4
answers
308
views
Swift UI - Custom distance between keyboard and textfield
I have created a scroll view with multiple textfield in vertical stack.Scrolling is working perfect. After clicking on textfield it autoscrolled above keyboard, but I need more space between keyboard ...
-4
votes
1
answer
189
views
Unity ScrollView — Vertical scrollbar always visible, horizontal scrollbar never works
I'm building a 2D level editor scene in Unity for my game, which includes custom width and height.
Setup
I have two text inputs where the user enters width and height.
Based on those inputs, I ...
0
votes
1
answer
62
views
Use programmatic scrolling while ScrollView is still scrolling after users gesture in SwiftUI app
In iOS app written with SwiftUI I need a ScrollView to scroll to certain object that has certain ID. I'm using scrollTo function of ScrollViewReader to do this and it works while ScrollView is not ...
0
votes
1
answer
78
views
SwiftUI align view to center scrollView
My task is to make a scrollview, which receives an array of strings and an overlay, which is located in the center. When some view gets into this overlay, it should immediately align to its borders, ...
0
votes
1
answer
233
views
Multiple pinned views at the top of a LazyVStack within a ScrollView
I am trying to create a ScrollView with a LazyVStack where two headers are pinned at the top. It should also work within a NavigationStack using large display mode for the title. Both headers should ...
0
votes
1
answer
70
views
Even with .clipped(), .scaledToFill() overflows in SwiftUI
Okay, so I have a Horizontal ScrollView that I cant access because the images I have are vertical ones that are pretty big in definition. Therefore even if I give it a frame, it overflows over the ...
2
votes
0
answers
212
views
Performance Issue with LazyVGrid and ScrollView
import SwiftUI
import Kingfisher
struct WorksDateView: View {
let columns: [GridItem] = [
GridItem(.flexible(), spacing: 8),
GridItem(.flexible(), spacing: 8),
...
0
votes
0
answers
82
views
How to Prevent Scrolling Lag scroll UI like Apple Weather in SwiftUI?
I’m working on a major update for my app and I’m aiming to improve the design to match premium standards, similar to Apple’s design approach. The app I’m working on is SignDict, which displays both ...
0
votes
1
answer
108
views
2 ScrollView issue in SwiftUI
I want to use 2 scrollView. One on top of the other. The one below can push over the one above.
Here is what i currently have:
Blue rectangle - is an item in scrollView which I can scroll. Bottom(631,...
4
votes
2
answers
770
views
prevent scroll into nothing while draging
I use dnd-kit for react in a tanstack-table surrounded by a div which has scrollbars.
The Problem is, as shown in the gif below, i can scroll into nothing.
I want to prevent that.
It should only ...
0
votes
0
answers
37
views
MacOS App - NSHostingView doesn't work with SwiftUI ScrollView
I'm attempting to write my first MacOS app, after a number of years writing iOS apps. Fun & games. Anyway, I'm having a problem when I create a new NSWindow, & use NSHostingView with SwiftUI ...
0
votes
0
answers
41
views
Intersection Observer not cleaning up after observing
I'm creating this section of a website where images would slide into view when in the viewport. I just learned about intersection observer and tried to implement it, and it works fine.
The only ...
0
votes
1
answer
33
views
ScrollView always visible from the start
I want to have my Scrollview always visible as you can see in the photo
The only problem is that I can manage to make the scrollbar background (this grey color) but not the white part that when you ...
0
votes
0
answers
138
views
Scrollview issue with new android edge to edge
I'm facing an issue with ScrollView in my newly created Android app. Previously, ScrollView worked perfectly in my projects, but now with the introduction of Edge-to-Edge in Android, ScrollView is not ...
2
votes
2
answers
95
views
Paged ScrollView miss some items due to scroll process
I'm trying to build custom WheelPicker. All almost done, but....
It's can be scrolled to each element except 2 and 3 for some reason.
In the same time I can select any other element. Problem is only ...
0
votes
1
answer
40
views
FlatList Not Scrolling As Expected
import React from 'react';
import { View, Text, StyleSheet, FlatList, TouchableOpacity, Dimensions, PixelRatio } from 'react-native';
import LeftArrow from "../assets/icons/LeftArrowSvg";
...
0
votes
1
answer
86
views
TouchableOpacity not working properly in nested FlatList or ScrollView
I need to display product categories. Each category contains multiple products that should scroll horizontally.
When I click on a category item, the touch event doesn’t work consistently. Sometimes it ...
0
votes
0
answers
19
views
Android Fixed ListView Inside a ScrollView
I am looking for some suggestions on how to implement a UI for a project I am working on. One of the activities is a review screen with long blurbs of text so I have them inside a linear layout that ...
0
votes
1
answer
83
views
ScrollView with pagination behavior makes app crash
I have a straightforward ScrollView that shows paging behavior like this:
import SwiftUI
struct ScrollTest: View {
var body: some View {
ScrollView {
VStack{
ForEach(0..&...
1
vote
2
answers
56
views
ScrollView vertical scrolling does not work
I have encountered a problem and need your guidance to fix it.
I am using a ScrollView to make the content vertically scrollable. However, when I try to scroll, the content does not move at all. I am ...
1
vote
0
answers
52
views
Focus element can't be fully shown in Voice Over
I'm using LazyVGrid embed in a ScrollView in SwiftUI, when I open the caption panel in VoiceOver, the bottom item can't be fully shown.enter image description here
It will be shown just right if I ...
1
vote
0
answers
59
views
Keep scroll position when new items are added to top of the list
I am having an issue with keeping the list view 'frozen' in place when new items are added if the user has scrolled down to view and item. Here is the code that I am currently using:
import SwiftUI
...
2
votes
1
answer
78
views
Wheel scroll issue: How to set scrolling so that only one section moves at a time?
I am coding for a scrollable website. It runs very well when I use a mouse, but I am facing an issue when using a laptop scroll pad. When I scroll using the laptop pad, these sections move twice as ...
0
votes
0
answers
36
views
Horizontal scroll buttons
I have a dialog with a plusIconButton that allows me to create new column. I can create new columns till I reach this equality allBomDocumentIds.length === styleOptions.length. In that moment I ...
0
votes
1
answer
153
views
.NET MAUI Custom WebView Content Not Visible Inside ScrollView on Android Platform
I am using a Custom WebView in my .NET MAUI application to display HTML content on Android. However, when the WebView is placed inside a ScrollView, the content does not appear on the UI. If I remove ...