12,494 questions
1
vote
1
answer
104
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
70
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
58
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
56
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
125
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
81
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
50
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
42
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
54
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
52
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
64
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
66
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
44
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
85
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 ...
0
votes
1
answer
41
views
Scaling up a UIView seems to affect firing of UIGestureRecognisers
I’m using VNRecognizeTextRequest to provide VNRecognizedTextObservation datum. The image is shown in UIImageView with UIViews of the BoundingBoxes identified, all being subviews of a parent UIView. ...