Skip to main content

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.

0 votes
0 answers
40 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 ...
Anup Kumar Mishra's user avatar
0 votes
0 answers
68 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 ...
CobraCodes's user avatar
0 votes
0 answers
30 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 ...
Vina's user avatar
  • 989
0 votes
1 answer
11 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 ...
Chirayu modi's user avatar
0 votes
0 answers
17 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 ...
Bob's user avatar
  • 452
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 ...
Kamajabu's user avatar
  • 496
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"?&...
Dariel Pratama's user avatar
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 ...
Franck Jordan's user avatar
-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) {...
Prasanna Kumar Komminani's user avatar
0 votes
0 answers
66 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 ...
HeySaiK's user avatar
  • 490
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.
wristbands's user avatar
  • 1,249
0 votes
1 answer
106 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, ...
BlackM's user avatar
  • 4,015
0 votes
1 answer
51 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 ...
S0ulM1ke's user avatar
0 votes
0 answers
44 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 =...
alex.bour's user avatar
  • 2,894
0 votes
0 answers
17 views

KivyMD - No Button added

I'm trying to make a simple hangman game for my niece (and practice a little kivymd). I type the typical starting code, but nothing is added to the screen. The .py file is: from kivymd.app import ...
Jorge Nuñez's user avatar

15 30 50 per page
1
2 3 4 5
470