Skip to main content

All Questions

1 vote
1 answer
67 views

List cannot scroll vertically If hovered a List subview that needs to support horizontal scrolling

I have a List that contains some views, some of which need horizontal scrolling. It is important to note that none of the views require vertical scrolling. When my mouse hovers over the views that do ...
Binglei Ma's user avatar
0 votes
0 answers
49 views

Prevent or detect scrolling by dragging of scroll indicator

In our app, we display a large list of items (roughly 30000 items) whereby each item needs to convert a complex/long string with tags into a NSAttributedString which is then displayed. We have ...
Sebastian's user avatar
  • 153
1 vote
2 answers
112 views

How does scrollIndicatorsFlash(trigger value: some Equatable) not require a binding to observe changes?

I'm learning about Lists and ScrollViews in SwiftUI and one of the modifiers that is available is: public func scrollIndicatorsFlash(trigger value: some Equatable) -> some View Documentation My ...
Roberto's user avatar
  • 3,889
2 votes
1 answer
63 views

SwiftUI enable scrolling of List inside a disabled ScrollView

I have a List inside a ScrollView that is scroll disabled. The List also disables and cannot be enabled. I need the ScrollView to not scroll by drag gesture. Is there a way to allow the List to scroll ...
Cyklist's user avatar
  • 89
0 votes
2 answers
1k views

SwiftUI - Allow List to Show All Rows in ScrollView

In the app I'm working on I have a details view that uses ScrollView to display a bunch of information. I want to use a List inside that ScrollView to display some specific data. However, you can't ...
Jordan Herget's user avatar
0 votes
0 answers
81 views

Is it possible to have a distinguishable tap gesture for a List or ScrollView background?

I have this view hierarchy: let items = ["Item 1", "Item 2", "Item 3"] var body: some View { ZStack { Color.green .onTapGesture { ...
amdsy's user avatar
  • 1
1 vote
0 answers
388 views

Accessibility : Full keyboard access with scroll view in swiftui

I have checked almost all previous question related to my query but did not find my solution. I'm facing issue with Full keyboard access accessibility when integrate it with scrollview. Inside ...
Shivam Trivedi's user avatar
1 vote
1 answer
638 views

Get current item in LazyVstack inside scrollview when scroll ends

I want to print the currently displayed item in LazyVStack which is inside scrollview with paging enabled. i have tried printing in onAppear of VerseView The issues with printing inside onAppear are- ...
Jaseel.Dev's user avatar
1 vote
1 answer
774 views

Trying to make VStack scrollable, hides the items

I have created a custom dropdown menu, but I am struggling to make the list of items scrollable.. I have tried to wrap in a List and, also a Scrollview, in various ways, but all lead to the ...
Edward Tattsyrup's user avatar
0 votes
1 answer
435 views

NavigationBar Title Did Not Inline When Scrolling

I am very new to Swift and SwiftUI. I am trying to create the Contacts View of Apple's Phone app. I am using Xcode 14.3.1. My aim is to make navigation title get inline mode when scrolling. But the ...
Hilal's user avatar
  • 1
1 vote
0 answers
467 views

Issue with Scrolling contents of List in SwiftUI

I have some Content inside a SwiftUI list. There is also a NavigationLink(destination, Label) wrapped around the content to let the user navigate to the Detail View when the List Item is clicked. ...
Amey079's user avatar
  • 141
2 votes
1 answer
3k views

SwiftUI: How to scroll a list inside a sheet without dragging the sheet to the top

I have prepared a simple example. If you tap on the button, a sheet will be presented containing the CustomSheetView. Do not behalf on the design itself it is more about the scrolling behaviour. If I ...
Dgotin's user avatar
  • 58
2 votes
0 answers
918 views

Preserve scroll position when list changes

I am working on a View that has following requirements: Show list of Sections with "items" in each section. A header with pills that allows filtering the "items" based on ...
chow's user avatar
  • 21
2 votes
1 answer
1k views

SwiftUI ScrollView: keep view anchored to bottom when resizing view

I am building a chat application with SwiftUI. I am fetching my chat list through Firestore and create the scrollview and insert an empty Stack under the messages as an anchorpoint to which the ...
Casualzach's user avatar
0 votes
0 answers
679 views

SwiftUI extend or recalculate VStack height when children views extend

I have a scrollview that holds "cards" with weather details of locations and the cards extend to show more information when tapped. I have to use a LegacyScrollView so that the bottomsheet ...
durkester's user avatar

15 30 50 per page