12,492 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
330
views
Smooth horizontal autoscroll while dragging near edges (keep item under finger)
I have a SwiftUI horizontal editor (multiple "canvases" laid out side‐by‐side in a ScrollView). When the user drags a selected object and reaches the left/right edge of the visible area, I want the ...
1
vote
1
answer
180
views
iOS 26: UIScrollView topEdgeEffect not applied
I am trying to use the topEdgeEffect API in iOS 26, but even setting the effect style to ".soft" does not work:
class ViewController: UIViewController {
var scrollView: UIScrollView!
...
0
votes
0
answers
72
views
UICollectionView freezes after double-tap on a rotated/scaled cell during horizontal scrolling
I have a horizontally scrolling UICollectionView in Swift.
Inside scrollViewDidScroll, I apply a rotation and scale transform to visible cells to create a card-tilt effect.
The issue:
If I double-tap ...
2
votes
0
answers
64
views
UIScrollView zoomed UIImageView doesn’t bounce on vertical edges during pan
The Issue
I've created a zoomable image component for SwiftUI by wrapping UIScrollView and UIImageView using UIViewRepresentable. The core functionality, like pinch-to-zoom, double-tap-to-zoom, and ...
0
votes
2
answers
58
views
Keep size and space between views in UIScrollView when zooming
In the scroll view I have one central view (gray) that should zoom normally and some other views (orange) which should keep their visual size and space to the gray view.
I can keep size by applying ...
0
votes
1
answer
133
views
UIScrollView in UIViewControllerRepresentable - UI freezes when content touches bottom SafeArea
The SwiftUI ScrollView lacks some features I need and so I created a custom MyScrollView based on UIScrollView wrapped within a UIViewControllerRepresentable. While this works fine in general I know ...
0
votes
0
answers
90
views
SwiftUI wrapping UIScrollView in UIViewControllerRepresentable - How to correctly inset scrollbars?
The SwiftUI ScrollView lacks some features I need and so I created a custom MyScrollView based on UIScrollView wrapped within a UIViewControllerRepresentable. While this works mostly fine, the ...
0
votes
1
answer
57
views
UIContextMenuInteraction not working if view is originally offscreen
I’m having a weird UIKit problem. I have a bunch of views in a UIScrollView and I add a UIContextMenuInteraction to them when the view is first loaded.
The interaction works great for any of the views ...
0
votes
0
answers
45
views
How to hide a Header when scrolling down in Kotlin
I have a header which is basically a rounded rectangle with some text and two buttons and a background image behind the rectangle which stretches to the very top.
And, I have some ’TabRow’ buttons ...
0
votes
0
answers
55
views
iOS - Swift - UICollectionView inside UITableViewCell do not scroll after first show
I have this class:
class SectionCellRowCollection: UICollectionView, UICollectionViewDataSource, UICollectionViewDelegate {
required init?(coder aDecoder: NSCoder){
fatalError("...
0
votes
0
answers
55
views
How to Detect Scroll Completion Before Calculating Frame?
How to Detect Scroll Completion Before Calculating Frame in Swift (iOS)?
I am working on an iOS application where I have a screen containing both a UICollectionView and a UITableView. The ...
0
votes
1
answer
65
views
ScrollView is not scrolling
I have the following scrollview but it's not scrolling. How can I fix it?
private func setupUI() {
let scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false
...
-1
votes
1
answer
68
views
Offset view containing horizontally scrollable collection view in superview, while also allowing to scroll to edges of superview
I am working with UIKit.
I have a main view that contains a few stack views + few label views + a horizontally scrollable collection view.
I am then adding this main view to a superview.
I would like ...
1
vote
0
answers
45
views
How can I make scrollview content vertically centered at the top and bottom, as well as scale content down as it gets farther from the center? [duplicate]
Here is what I would like to do:
I would like to make a scrollview in my app where when the user scrolls all the way to the top, the top content is exactly in the middle of the view, same thing for ...
0
votes
0
answers
88
views
Unable to update the UI as the user scrolls the ScrollView and can't make the ScrollView infinite (ie start from first when last item is shown)
I am trying to update the text "Selected colour: " based on the colour that is selected by the user. Once the View is refreshed it shows a colour but when the user scrolls through the ...