swiftui-scrollview Questions

2

Solved

Ever since Xcode 16, whenever there is a subview with a horizontal DragGesture inside a vertical ScrollView, horizontal drag gesture is detected on the subview but any scrolling up/down is not dete...
General asked 19/9 at 5:33

2

Solved

I'm trying to use SwiftUI's viewAligned scrollTargetBehavior for a ScrollView where scrollTargetLayout subviews are irregular in size. Here's an example, which I've simplified for the purpose of il...

2

Solved

I made a custom nav bar. and added a scroll view below it. The problem I am getting is when I scroll down, the data inside scroll view comes over the navigation bar. Here is the screenshot: My cod...

1

Solved

When you turn the ScrollView left to right, and try to scroll, content jumps to the other side. Is there any way to prevent this? Main: var body: some Scene { WindowGroup { ContentView() .enviro...
Castano asked 7/11, 2023 at 19:0

1

Solved

I have an issue with @AppStorage and ScrollViewReader that seems like a bug. My @AppStorage variable fontSize is supposed to adjust the text size inside a ScrollViewReader. However, when its value ...
Walrath asked 11/10, 2023 at 12:54

4

Solved

So I'm try to use ScrollViewReader to programmatically scroll a horizontal scroll view. I thought it would work like scrollToItem with .centeredHorizontally in UIKit, and for the most part it does,...
Mesoderm asked 25/7, 2021 at 2:13

2

Solved

I created an excel-like view, using a multi-directional scroll view. Now I want to pin the headers, not only the column headers but the row headers as well. Look at the following gif: Code I used ...
Lythraceous asked 15/2, 2022 at 7:44

7

Xcode Version 12.4 (12D4e) I have encountered this every time I have implemented a Lazy stack within a ScrollView: Add a LazyHStack to a horizontal ScrollView or a LazyVStack to a vertical ScrollV...
Leto asked 8/3, 2021 at 2:58

4

Solved

I'm trying to have the content inside a ScrollView be centered when that content is small enough to not require scrolling, but instead it aligns to the top. Is this a bug or I'm missing adding some...
Glutinous asked 13/4, 2020 at 7:58

0

I am trying to find out when the user interacts with a horizontal ScrollView in SwiftUI. The problem is that most solutions that I have found are based around when the scroll view moves. This doesn...
Caddell asked 22/2, 2022 at 23:23

0

I'm creating an app where I'm presenting data in paged views and each view contains a vertical scrollable list, enabled by scrollView. I'm also using scrollViewReader to be able to programmatically...
Cacomistle asked 12/3, 2021 at 15:17

0

I'm trying to create a carousel like some of Apple's apps. The TabView has the paged style but it doesn't "peek" at the previous and next elements. The ScrollView(.horizontal) doesn't sna...
Dearr asked 6/3, 2021 at 18:0

1

Solved

so I have a TabView like shown below, but when I try to implement it in a ScrollView I always have to give it a fixed height. Is there a way of telling the tabview to use the space it needs in the ...
Pelag asked 30/9, 2020 at 11:10

2

Solved

I need to place a translucent rectangle on front of ScrollView but when i put everything (Rectangle & ScrollView) inside of a ZStack, scroll & touch events stop working within this rectangl...
Lebel asked 6/1, 2021 at 11:22

1

Animating Views between a LazyVGrid and an HStack with another view in between them (in this case, a Button), using matchedGeometryEffect, works great: Note how the animating views move above the ...
Colubrine asked 18/8, 2020 at 20:18
1

© 2022 - 2024 — McMap. All rights reserved.