Questions tagged [uiscrollview]
Use this tag for all questions about scroll views on iOS. Do NOT use this tag for other platforms.
12,448
questions
0
votes
1
answer
25
views
ScrollView Frame Color Mixing with Random Frame at top of screen
I have this scrollview as shown below
However, there are two problems.
Firstly, when I scroll up the red of each item "mixes" with some random white rectangle at the top of the screen to ...
1
vote
1
answer
29
views
Make ScrollView span the entire width of screen
I am trying to make the width of the scrollview span the entire screen, however the width for some reason does not span the entire screen despite using infinity.
ScrollView {
VStack(spacing: 20) {
...
0
votes
0
answers
25
views
Setting contentOffset for UIViewRepresentable ScrollView (SwiftUI)
Problem
I'm trying to start an UIViewRepresentable ScrollView with a given zoom and position.
I set the new zoom and new contentOffset in the makeUIView, but the setContentOffset call has no VISUAL ...
0
votes
0
answers
12
views
tvOS PDF Moves Down One page when bottom remote button clicked
My tvOS app loads PDFs inside of a scroll view. Each page is currently visible inside of the screen, and you can swipe to scroll through it, but I would like the capability to click the bottom and top ...
0
votes
0
answers
13
views
Update React native ScriollView current scroll position to state with better performance
The image attached is a single screen, with different scroll positions. At frame A, thats the default, when the scroll position contentOffset.y is at 0, The second frame shows when the contentOffset.y ...
1
vote
0
answers
36
views
Start SwiftUI implementation of UIScrollView at specific scroll and zoom
I have some experience in SwiftUI, but am new to UIKit.
I'd like to import the zoom and position from one instance of an UIViewRepresentable UIKit ScrollView to another. So, basically, the user ...
0
votes
0
answers
26
views
WkWebview inside uiScrollview
I was wondering if you can help me please. I have a wkWebview that has horizontal paging content.
Outside of that I have a scroll view that also has horizontal paging content.
There is obviously a ...
0
votes
0
answers
31
views
Any way to keep gradient attached at top when scrolling?
I have a scroll view attached to superview(not safe area) and inside it there is a gradient filled view at top. However when i swipe up, the gradient gets pulled down and white background is showed at ...
0
votes
1
answer
22
views
Content in UIScrollView not scrolling
I have a UIScrollView in my UIViewController. I can scroll the ScrollView (I can see the bar at the bottom of the scrollView moving), but the content I put as a subView into the ScrollView is not ...
0
votes
0
answers
5
views
How to add a button to the bottom of a Webview scroll space
Looking for a way to add a button to the bottom of a WKWebView's scroll region. The effect I want is to be able to scroll to the bottom of the content and have a UIButton be at the bottom, think of ...
0
votes
1
answer
39
views
How to Make TableView scroll inside ScrollView behave naturally
I need to do this app. The view hierarchy goes like this
UIScrollView
-UIView (Main View)
--UIView (Top View Container)
--UITableview
When scrolling up the Main View, If table view has many cells, ...
1
vote
0
answers
25
views
React Native: prevent ScrollView from resetting on every re-render
I have a component in my React Native app that contains a <ScrollView>. This component also receives a prop this.props.a that gets updated every 60s. So every 60s the component gets re-rendered, ...
0
votes
0
answers
49
views
Scroll handler on View Controller
Hi everyone I have some question about scroll handler on ios platform. Because ı face this problem all the time and ı can not any idea how to figure out.Whatever
the problem is ı have collection view ...
0
votes
1
answer
28
views
iOS: How to scroll navigation bar as view controller scrolls
I want to scroll the navigation bar as the user scrolls on the view controller. This should be similar to how the YouTube app's home page is working. When the user scrolls down, the navigation bar ...
0
votes
2
answers
59
views
How to avoid a double call of scrollViewDidScroll() method while swiping the collectionView?
I have created a User Onboarding as a Collection View with 5 cells (pages).
The Collection View has a UIPageControl which shows an active page user currently on and 2 UIButtons (previous and next) ...
0
votes
1
answer
43
views
Long Press Gesture Recognizer location(in: view) not correctly calculating location
I'm using a UIScrollView to display an image with various markers on top. The image view has a UILongPressGestureRecognizer that detects long presses. When the long press event is detected, I want to ...
0
votes
1
answer
29
views
Animated scroll of UITableview like credits at the end of a movie
I have to make a screen for the credits of my app that behaves like the credits at the end of a movie. I was using a uitextview but we need sticky headers like a tableview. So I switched to that but ...
0
votes
0
answers
30
views
Alternative way to check intersect scrollview subview frame Swift
Currently i'm following the below code to check the two CGRect Frame intersects.
Code:-
var visibleRect = CGRect.init(x: 0, y: 0, width: 0, height: 0)
visibleRect.origin = scrollView.contentOffset
...
0
votes
1
answer
46
views
How to enable horizontal scroll of UICollection View that is within a UITableViewCell?
I have a UICollectionView placed inside a UITableViewCell. The collection view has its scroll direction set to horizontal. However, when I swipe left or right on it to try and scroll, it doesn't work. ...
0
votes
1
answer
12
views
UICollectionView delegate is not responding when the UICollectionView is embedded within a UIScrollView
I have a UIViewController with a UIScrollView. The top half of the screen contains some labels and text fields. The lower half of the screen is the UICollectionView. The UICollectionView is embedded ...
0
votes
1
answer
39
views
How to have a vertical collectionView on top of a tableView in the same scrollView programmatically?
So I have a vertical collectionView using CompositionalLayout and a tableView.
How can I add the collectionView on top of the tableView?
So that the user would scroll down the collectionView and when ...
0
votes
1
answer
34
views
Add a vertical UITableView inside a UIScrollView
I have a screen that contains some content, and on the bottom of it I'd like to have a UITablView and I'd like that the two were synchronized. If I scroll the UITableView on the bottom, the content ...
0
votes
2
answers
87
views
Recenter the scrollview content Swift
I'm trying to recenter the scrollview view and move the frame, when the user current location goes to the out of the screen frame. Currently I have a PDF and I'm showing the user's current location, I ...
0
votes
1
answer
66
views
How can I make ScrollView full screen? I placed the necessary constraints, but it doesn't work
I'm trying to make a ScrollView so that its size adjusts to the size of the text. I placed all the necessary constraints
, but when the application is displayed on the simulator, the content view ...
0
votes
0
answers
34
views
Add UIScrollView programmatically in a ViewController that contains a smaller UIView with objects
I have an UIViewcontroller. I have a smaller UIVIew in this UIVIewController. Now i am trying to add an UIScrollView programmatically that should contain the smaller UIView so i can scroll the smaller ...
0
votes
0
answers
27
views
SwiftUI set blur on scrollview children except top most child
How would I set a blur on all of a scrollview's children (inside a vstack) except for the topmost visible child in the scrollview?
I've tried something like the following but it does not work.
...
0
votes
0
answers
45
views
UIScrollView setContentOffset back to top, stop at incorrect contentOffset
I have a button at the top of UITableView, once I tap the button, will call setContentOffset(:animated:) of this UITableView to back to the contentOffset I want, which is -button.height.
Most of time ...
0
votes
0
answers
34
views
If I put ImageView in Uiscrollview and expanded UiImage as long as you expanded, I thought that one pixel will be visible
If I implement and check, I will not see one pixel and see that the image is smoothed and displayed.
Is there a way to view a pixel?
Is there a property to turn off smoothing to UIImage?
the ...
0
votes
0
answers
25
views
ScrollView in a NavigationView with a .navigationTitle presented in a .sheet : animation glitch
The problem is very simple.
I would like a ScrollView with a navigation bar (with its two appearances : a large title when the view is not scrolled ; a compact appearance otherwise).
It's simple and ...
0
votes
1
answer
17
views
UIStackView not reversed when viewDidLoad in RTL language
I have a UIStackView in Storyboard with structure as below and want to scroll it to a specific button in viewDidLoad.
This is how I'm scrolling it.
[self.scrollView scrollRectToVisible:button.frame ...
0
votes
1
answer
47
views
Appium - get all items in UiScrollable (including not visible)
I need to verify text for all items in list (inside UiScrollable) using Appium.
Following approaches are not working for me:
driver.findElements(MobileBy.id("com.author.app:id/title")) - ...
1
vote
2
answers
276
views
How to hide/show view simultaneously while scroll up/down in swift
storyboard design hierarchy like this design hierarchy
here if i scroll-up i need to hide only topView and need to show secondView on top and scroll should perform from the bottom of secondView and if ...
0
votes
0
answers
129
views
Swift - Layout problem with scrollview and safe area
I have a problem with a scrollable layout
I have two UiViewController :
One on the top with a green background (TopVC) and the other is red (the initial VC) which are perfectly scrollable
When I start ...
0
votes
1
answer
47
views
Halve scroll speed for UIScrollView?
For testing (and for screen captures) I use layer.speed to slow down animations globally.
window.layer.speed = 0.5
Yet this only controls animations, I cannot control UIScrollView speeds. Is there ...
0
votes
0
answers
18
views
How to create multi paged PDF from SpreadSheetView in Swift 5?
I have used SpreadsheetView to display some large information but when i try to create multi-paged PDF from SpreadsheetView, PDF is generated with proper height and width but only first page in pdf is ...
0
votes
1
answer
23
views
UIScrollView – Adjust User Scroll Amount Akin to Scrubbing?
I have UIScrollview that the user scrolls up and down.
Is there a way to adjust how much the user's drag of the finger results in the final scroll amount?
I was looking at UIScrollview delegate ...
0
votes
0
answers
29
views
UIScrollView for ViewController horizontally and vertically
My code tutorial works for scrolling horizontally with ScrollView.
I would like to make it with ViewControllers (instead of views) from my Storyboard.
And I would like to add a vertical ScrollView (To ...
0
votes
0
answers
35
views
UIScrollview height won't change programatically in swift
Try to change scrollview height, but it doesn't work programatically
@IBOutlet weak var containerView : UIScrollView!
public override func viewDidAppear(_ animated: Bool) {
self.containerView....
0
votes
1
answer
29
views
How to check if UIScrollView stopped scrolling at a specific ViewController?
I have a vertical UIScrollView that has a StackView in which View Controllers are added to and each View Controller is of a different size.
If scrolling stopped at a specific View Controller (the 3rd ...
0
votes
2
answers
30
views
Vertical scroll not work in uiScrollView swift
Try to have scrollview inside stackview
But when i try to scroll it, it's not working. Label is already more than enough to make it scrollable
Is there any missing constarint ?
Main view is in ...
1
vote
1
answer
47
views
Swift: Hide Scrollview header
I would like to hide the header of my scrollview.
I have a scrollview
//Contains everything inside the view
let scrollView = UIScrollView()
scrollView.alwaysBounceVertical = true
...
0
votes
1
answer
16
views
How to make UINavigationBar shadowImage fixed?
I have a reversed UITableView:
tableView.transform = CGAffineTransform(rotationAngle: -(CGFloat)(Double.pi))
NavigationBar setup:
navigationBar.shadowImage = UIImage()
navigationBar.layer....
0
votes
0
answers
41
views
Gap between NavigationBar and SafeArea
I'm trying to figure out why the Scroll View in protruding through the Navigation Bar when I scroll down. I've noticed that this only happens when I do not use the simulator, but it doesn't happen ...
0
votes
0
answers
13
views
Swipe menu, problem with the first instantiated gameobject
I am making a map selector for one of my projects, and I have a strange problem with the first instantiated image. Here are two pictures so you can understand better:
So it's a list of prefabs that ...
0
votes
1
answer
62
views
(Swift 5) UIScrollView scrolls but none of the content scrolls (video included)
I'm trying to learn to build views without storyboard. I tried to build a scrollview. On that scrollview is a UISearchBar, a UIImageView with an image and a UILabel. It works but none of the content ...
0
votes
1
answer
30
views
Is there a way to exit the current view group while using pan gesture in ios?
So I have a horizontal scroll view at the bottom of my screen which contains child views. I would like to drag a view from the bottom and snap it to a defined position on the top. But while dragging ...
0
votes
1
answer
43
views
the horizontal scroll of collectionView is not working(collectionview is inside backgroundView of tableView)
I have collectionView inside tableView.backgroundView.
TableView covers collectionView when it scrolls to top.
let customView = CustomView(frame: CGRect(x: 0, y: 0,width: view.frame.size.width, ...
0
votes
0
answers
43
views
Autolayout warning "NSLayoutConstraint is being configured with a constant that exceeds internal limits"
I have a subclass of UIScrollView called MyScrollView. There is a subview called contentView inside MyScrollView. The width constraint is set to be the contentSize of MyScrollView.
private func ...
0
votes
0
answers
40
views
What exactly is error "CALayer: ignoring bogus Layer Size"?
I am getting this error when one of the subview in UIScrollView is "too large". I use drawRect to draw this subview. Nothing is drawn when this warning appears as setNeedsDisplay() calls are ...
0
votes
1
answer
40
views
scrolling not working inside childview - swift(iOS)
I have added child view inside the containerview, containerview height will update as subview height changed.when Bzcardview display,it will hide containerview and when containerview display it will ...