Questions tagged [scrollview]
Be sure to use a **platform specific** tag. Use this tag only for the most general questions about scroll views on all platforms. A scroll view is a view that can be scrolled by the user, inside a containing area. One of the basics of all modern UX.
scrollview
7,036
questions
0
votes
0
answers
17
views
SwiftUI paging with custom scrolling control
I'm new to SwiftUI, and I'm trying to design a paging view associated with a custom tab bar control. The tab bar should be scrollable and synced with the main view. Tap to select on the tab bar should ...
0
votes
0
answers
42
views
How to bind the two or more ScrollViews for scrolling together in SwiftUI? [closed]
I want to bind the both scrollView of horizontal because when I scroll any view, both views should scroll together. I just need when I scrolling any view of horizontal then it scrolls both together ...
0
votes
0
answers
69
views
Save exact scroll position in SwiftUI
Does anyone know how to save exact scroll position to app storage in SwiftUI, so like if you kill the app or navigate to other views, the exact scroll position of the ScrollView is saved? Can you ...
0
votes
0
answers
31
views
Why does LazyHStack render the first 3 views therefore calling onAppear too early?
I want to toggle a Boolean state when a view is visible in the phone screen.
I've made the LazyHStack as below however, the following 2 views, somehow is already appeared. I tried using the new API ...
0
votes
1
answer
12
views
I want to display a list in react native so which one is better approach
<ScrollView>
<FlatList>
</FlatList>
</ScrollView>
or
<ScrollView>
<VirtualizedList>
</VirtualizedList>
</ScrollView>
error is "VirtualizedLists ...
0
votes
0
answers
27
views
+300
Custom disabling ScrollView scrolling when used with recyclerlistview
I have the following React Native code.
import { ScrollView } from 'react-native';
import {
DataProvider,
LayoutProvider,
RecyclerListView,
} from "recyclerlistview";
const ...
0
votes
1
answer
107
views
LazyVGrid and scrollTo issue in SwiftUI
I have encountered an issue while implementing the scrollTo mechanism for a lengthy list of products displayed using LazyVGrid in SwiftUI.
Does anyone have a potential solution for this problem?
Below ...
0
votes
0
answers
31
views
how to focus on EditText inside scrollview
I am struggling with this issue for hours right now. so I have an activity with Toolbar and Scrollbar inside its layout. here is the layout
<?xml version="1.0" encoding="utf-8"?&...
0
votes
0
answers
14
views
how to click once instead of twice the data returned by my api when searching in the scrollview which maps keysopacity?
I created a modal in which I have a textinput, to carry out the search, a scrollview which instantly displays this search. the scrollview map on touchopacity and the problem is that I find myself ...
-2
votes
0
answers
55
views
SwiftUI: Changing ListView Row Background Color Based on Focus During Scrolling
I'm trying to change the background color of rows in a ListView while scrolling in SwiftUI. I've attempted the following code, but it's not working as expected
List {
ForEach(viewModel.menuItems) {...
0
votes
0
answers
68
views
Is it possible to loop a SwiftUI ScrollView to repeat infinitely?
I have a horizontal scroll view and a fixed array. I would like to loop it such that when I scroll left and get near the end, the array will add the items in the beginning to the end so that the user ...
0
votes
1
answer
30
views
How to create a SwiftUI wrapper around UIPageViewController that works in full screen and when rotated?
Apple released some new SwiftUI modifiers for ScrollView in iOS 17 that allow for paginated scrolling, but I need something that will work in iOS 15 and later.
0
votes
1
answer
111
views
SwiftUI - ScrollView scroll to specific ID with offset
I have ScrollView which is utilizing the ScrollReader to scroll to a view with a specific ID:
withAnimation(.linear(duration: animationDuration)) {
scrollViewReader.scrollTo(
tab.id,
...
0
votes
1
answer
52
views
QML: WebEngineView can't be scrolled in ScrollView (Flickable too)
I have some inconvenience with WebEngineView. I've placed it like other element in my scroll view. It's just need to play some YouTube video.
So, when I scroll through my ScrollView, when mouse is on ...
0
votes
0
answers
46
views
Setting the position in SwiftUI scrollView using AnchorPoint and coordinates
Reading great tutorials (that use PreferenceKey), I'm able to follow the scrolling in my SwiftUI ScrollView.
For example, in a ScrollView with:
y content size of 5000 pt
scroll view height of 675 pt
=...