As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [uiscrollview]

Use this tag for all questions about scroll views on iOS. Do NOT use this tag for other platforms.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
35 views

Applying UIPanGestureRecognizer outside of bounds

I want to allow users to add a yellow square UIView to a UIScrollView and then both drag and drop and zoom the yellow squares that the user has created. I understand that to enable this I need to ...
user11145365's user avatar
0 votes
0 answers
30 views

The bottom of the ScrollView is not reachable

I fail to make the scroll view able to reach the bottom of its view. The canvas is made of drawings where the user can touch through captured coordinates. Touching the bottom of the view is impossible ...
phbardon's user avatar
  • 107
0 votes
1 answer
28 views

How to calculate a height of UITableView inside UIView?

Please advise me if I have chosen the right approach: I need to create a view with two UILabels and a UITableView in the middle (schematic view). I created UIScrollView, put a contentView (UIView) on ...
Darya's user avatar
  • 1
-1 votes
0 answers
27 views

Swift - Applying Blend Modes To Different Views

I have gradient layer on a view of VC with bounds of screen. Inside of this view - scroll view which have list of other views (widgets). How to apply to those views (widgets) a colorBurnBlendMode ...
Avidzha's user avatar
0 votes
1 answer
290 views

After updating to Flutter 3.10 : screen not scrolling up when keyboard appears / ResizeToAvoidBottomInset stopped working

I have updated flutter sdk to latest 3.10.0 and dart 3 then screen not scrolling up when keyboard appears in android, mostly when a text field get focus. Before this update it was working fine in ...
Adarsh Vijayan P's user avatar
0 votes
0 answers
19 views

Sticky UIView in scrollview changes position after scrollview height set programmatically

I have a UIScrollView in which I have taken a view that will scroll with other views when it comes to the top it will stick to the top of the screen but I have another pagination on the same page for ...
NickCoder's user avatar
  • 1,504
-1 votes
0 answers
30 views

Move text and create copies from right to left based on label width

I'm trying to achieve news headlines flow like effect where headlines are shown in a bar and moved from right to left and viewers can watch on TV screen while they animate. For that to achieve I ...
user21901401's user avatar
0 votes
2 answers
53 views

When tap on button how to go to collectionview in swift

Like amazon and any other apps when we click on top review stars we are going to all reviews like that I need when i click on my app review stars(which is in the top) i need to scroll upto my all ...
swift doubts's user avatar
0 votes
0 answers
35 views

iOS Safari weird behavior of focusing input, centering input on focusing

for the last few days I am trying to fix a very weird problem that occurs just on iOS Safari. (14/15 and 16+) Ill post a video clip here to explain it. Bugged behaviour: https://streamable.com/11l02b ...
Elkhan Mammadkhan's user avatar
0 votes
0 answers
34 views

What is a proper way to scale PKCanvasView (UIScrollView)

I have PKCanvasView in my iPad app. When the user rotates the iPad - I need to scale the Canvas and all the strokes accordingly. So far I've found two ways to scale a PKCanvasView, first with a ....
Der's user avatar
  • 57
0 votes
1 answer
66 views

Programmatic scroll to offset expressed in pixel with respect to leading anchor, in SwiftUI

I'm trying to implement this kind of functionality in SwiftUI. The basic idea is that I have a slider and a ScrollView, and moving the slider around lets me scroll through the ScrollView content (...
NDR's user avatar
  • 11
5 votes
1 answer
221 views

Implementing SwiftUI ScrollView snap-to-placement behavior (perhaps using a "scrollViewWillEndDragging" equivalent)?

There is a common way of handling scrolling with UICollectionView so that when the user stops scrolling it gradually slows down and stops with the nearest item in the collection view lined up with the ...
Jeff C.'s user avatar
  • 1,960
0 votes
1 answer
52 views

How to place background image in ZStack without ruining animation?

MRE struct Test: View { var body: some View { NavigationView { GeometryReader { geometry in ScrollView { ZStack { ...
erotsppa's user avatar
  • 14.9k
0 votes
1 answer
36 views

SingleChildScrollView pixels overflow

I have a view with a text that overflow pixels. I want to have the text to a set height and all text inside that height would be scrollable. var _httpData = Builder(builder: (BuildContext context) { ...
Robban13's user avatar
0 votes
0 answers
17 views

How to force webview to fix scrolling height based on content

I'm getting back a height value that is way bigger than the actual size of my content, in WKWebView, I calculate the height using this code: webView.evaluateJavaScript("document.body....
Mc.Lover's user avatar
  • 4,963
-2 votes
1 answer
80 views

Pull to refresh scroll view with disabling bounce in iOS [closed]

How we can configure pull to refresh without bounce enabled in scroll view. its simple when we keep bounce enable we just need to assign refresh control to scroll view but I don't want to enable ...
Hiral Jotaniya's user avatar
0 votes
1 answer
43 views

Dismiss does not work correctly UIScrollView and UITableView

I have a UIViewController class that is presented over full screen On it I have a scrollview and a stackview with a uiview and a table view.addSubview(scrollView) scrollView.addSubview(stackView) ...
Марат Саляхетдинов's user avatar
1 vote
0 answers
151 views

SwiftUI: ScrollView pagingEnabled no longer working on iOS 16.4

On iOS 16.3 the ScrollView component can enable paging by setting the following: UIScrollView.appearance().isPagingEnabled = true However, after updating to iOS 16.4, this no longer enables paging on ...
John's user avatar
  • 138
-1 votes
1 answer
35 views

Prevent touches from being passed to views underneath

I have a UIScrollView with a lot of touch handling. I override methods like touchesBegan, touchesMoved, etc. And inside that scroll view, I also have some other views with UIPanGestureRecognizer. The ...
Son Nguyen's user avatar
  • 1,032
0 votes
0 answers
69 views

How to Configure the Scroll View?

I am currently creating an app that utilizes a scroll view to create an onboarding experience for the app. There are supposed to be 7 slides and every time you scroll or click a button it should go to ...
Varshith Peddi's user avatar
0 votes
1 answer
35 views

Unable to scroll two collectionviews horizontally at a time in swift

I have two collectionviews in scrollview. if i scroll horizontally then I need both collectionviews scroll at a time code: in below code if i scroll first collectionview then 1st collectionview first ...
swift doubts's user avatar
0 votes
0 answers
31 views

Changing font and text color of UIViewScroll with each scroll action

I have a custom UIScrollView I made for a picker and I am trying to change the color and font of the selected line. I tried following some online tutorials about how to implement this using a ...
Alex Anghel's user avatar
0 votes
0 answers
34 views

UICollectionView scroll to cell without loading initial cells

I have a UICollectionView using a UICompositionalLayout for the layout and a UIDiffableDataSource for the data source. The layout is a horizontal layout with one item per page (think of a page view ...
ashipma's user avatar
  • 403
0 votes
1 answer
34 views

Swift UIScrollView can't change starting point of my slider

I made this custom picker in SwiftUI but I can't figure out how to change the starting point to be 0,00 like in the picture attached: This is my code bellow import SwiftUI struct CustomPicker: View {...
Alex Anghel's user avatar
0 votes
1 answer
104 views

Scale UIView elements

I have a UIScrollView and I draw a line and a string in it's contentView of type DrawView. I want to maintain the width of the drawn elements relative to the zoomScale. Below is my code. class ...
iOS's user avatar
  • 3,486
0 votes
1 answer
173 views

How can I get the actual height of my content view in Swift

I have a UIView that contains a UIScrollView, and that UIScrollView contains another UIView, which contains labels etc. Sometimes, certain labels contain 3 lines of text, sometimes they contain 15,... ...
Nienke's user avatar
  • 1
1 vote
1 answer
72 views

How does UIScrollView.contentInset work to scroll up the content view?

Situation: When a Text Field has focus and the keyboard appears, the Text Field is moved up so that it will not be covered by the keyboard. To implement this, one solution is to add an observer that ...
Bruce L's user avatar
  • 33
2 votes
1 answer
238 views

How to make PKCanvasView zoomable in SwiftUI?

There a PKCanvasView setup like this: struct CanvasView { @Binding var canvasView: PKCanvasView let onSaved: () -> Void @State var toolPicker = PKToolPicker() } extension CanvasView: ...
erotsppa's user avatar
  • 14.9k
0 votes
1 answer
113 views

Content offset issue in wrapped UIScrollView during transition from the bottom of the screen in SwiftUI

Description I am using a custom UIScrollView with custom content in a popup view that transitions from the bottom of the screen. However, each time it animates, the content within the UIScrollView ...
Hollycene's user avatar
  • 213
-2 votes
1 answer
130 views

I can't fix scroll view constraints in this complex view

I am having issues in my code with constraints. I'm seeing the following types of errors: Will attempt to recover by breaking constraint <NSLayoutConstraint:0x600000ea6440 UIView:0x7fc684509760....
user8058965's user avatar
0 votes
0 answers
86 views

How, exactly, do you (manually) set the constraints for contentLayoutGuide. (And how do you remove any "existing" ones - are there any?)

In some unusual cases, in a UIScrollView, var scroll UIScrollView you want to manually set (we could say override, force) the scroll.contentSize value. This is problematic, because, the scroll view ...
Fattie's user avatar
  • 28.7k
0 votes
1 answer
43 views

Central Y align a textfield within a UIScrollView in Xcode

I have a UIScrollView which contains a UILabel with a UITextField directly beneath it. The scrollview is there to bump up the textField when the keyboard opens for editing I'm a bit confused to how I ...
Lena V's user avatar
  • 231
0 votes
1 answer
49 views

How to make page scroll when cursor is not in focus

I have a 3-column layout, in which the middle column is scrollable and I don't want other columns to be scrollable. Also the middle Column should be scrollable when cursor is outside the column on ...
prashant's user avatar
  • 200
0 votes
0 answers
50 views

How to pass through only vertical pan touches on top view to view underneath

There are a number of other S/O questions that discuss passing touches through a view on top to the view underneath. This is achievable by overriding the hitTest(_:with:) and/or point(inside:with:) ...
willbattel's user avatar
  • 1,031
0 votes
0 answers
34 views

keyboardDismissMode stops working after I leave and reenter view

I am trying to dismiss the keyboard when the scrollview is scrolled. I was able to achieve this by adding: .onAppear{ UIScrollView.appearance().keyboardDismissMode = .onDrag } However, whenever I go ...
bruce_blake's user avatar
0 votes
2 answers
75 views

Scroll UIScrollView from an external UIPanGestureRecognizer

SETUP So I have a UIScrollView at the top of the view with a UIPanGestureRecognizer covering the whole view. GOAL When the user pan with a touch, I want the UIScrollView to scroll in a way that the ...
Gizmodo's user avatar
  • 3,099
0 votes
0 answers
36 views

Flutter - CustomScrollView how to listen sliver's positon

This is my page structure: CustomScrollView( SliverToBoxAdapter(), SliverPersistentHeader(pinned:true, Row(children:[tab_A, tab_B ,tab_C])), SliverToBoxAdapter(A), // A ...
zhouxinle's user avatar
  • 435
0 votes
1 answer
22 views

how to check if scrollView grinds to a halt when tabbar is clicked?

A viewcontroller is the child of tabbarcontroller, it has a tableview, when the tableview grinds to a halt, one of three methods is executed. - (void)scrollViewDidEndDragging:(UIScrollView *)...
ming's user avatar
  • 5
0 votes
1 answer
32 views

UITextView scrolling without triggering UIPageViewControllerDataSource in UIPageViewController's view controllers

I have multiple view controllers. Something like this: ViewControllerA ViewControllerB ViewControllerC I use these as my UIPageViewController's view controllers, (as pages). Each one of them has ...
incelemeTRe's user avatar
0 votes
2 answers
127 views

Update only a child view within SwiftUI body

I have a LottieAnimationView along with some other components inside ScrollView, animation is only supposed to play once. @State var messageBannerVisisbility: Bool = false var body: some View { ...
Paras Gorasiya's user avatar
1 vote
1 answer
139 views

react-native-flatlist-slider images don't show

App.js import { StyleSheet, Text, View } from 'react-native' import React from 'react' import { FlatListSlider } from 'react-native-flatlist-slider'; const images = [ { image: 'https://...
Gattu's user avatar
  • 131
0 votes
1 answer
101 views

Disable UIPageViewController Scroll

I have UIPageViewController with 3 child viewControllers. Is it possible to disable/prevent a user from scrolling to one specific viewController (i.e. User can scroll from view controller B to A, but ...
Chris's user avatar
  • 389
1 vote
0 answers
91 views

UIScrollView in SwiftUI does not line up with full screen

I am trying to make a vertical scroll view similar to Tiktok and have made a custom scroll view using UIScrollView. I am having a problem getting the scroll view to align with the screen. It seems to ...
Will's user avatar
  • 11
0 votes
0 answers
137 views

SwiftUI ScrollView with listeners not maintaining content state

I am using a custom ScrollView as I need scroll started and ended events, reference: https://stackoverflow.com/a/73612181/2768604 Below is my own wrapper to use ScrollViewOffsetReader from above ...
Paras Gorasiya's user avatar
0 votes
0 answers
20 views

Touch Gesture on image is not working in ScrollView? - Swift

This is the image on the scroll view where I'm able create those rectangles from superview This is the image I want how to look my output when I touch to began creating multiple rectangles I'm trying ...
Dhanush Srinivasan's user avatar
0 votes
0 answers
52 views

How to scroll a UIView to a certain height and after reaching that point scrolling inside the UIView?

Hey guys I'm new to swift programming. I've been stuck with this problem for a long time. So I have a UIView that starts in the middle of the ViewController, inside the UIView (green) is another ...
ToniB's user avatar
  • 1
0 votes
2 answers
118 views

How to make a view scrollable with only one element like in the settings app?

I want my app to have a view that can scroll even when there isn't always content to scroll to. For instance, the Wifi tab in settings is always scrollable. Is this a UIScrollView? I'm using ...
Will Conrad's user avatar
0 votes
1 answer
121 views

How to put UIView inside UIScrollView in Swift?

I am trying to add a UIView into a UIScrollView without storyboard. I made some code with the given two files(CalcTypeView.siwft and CalcTypeViewController.swift) as below. However, as shown in the ...
Hoyeon Lee's user avatar
0 votes
1 answer
67 views

Automatic scroll an constant velocity in Swift

I have a page where I would like to have a scrollview scroll at constant velocity. This appears very frequently in guitar websites, where the page basically autoscrolls. For example, on this site, you ...
Kelvin Jou's user avatar
-2 votes
1 answer
41 views

Nested Scroll inside UIViewController [closed]

I want to make a screen where user can have a design like a scrollview with two UIView on top and then below these views there can be a collectionview because user can scroll collectionview cell ...
Murtaza Mehmood's user avatar

1
2 3 4 5
250