536 questions
0
votes
1
answer
145
views
.NET MAUI SwipeGestureRecognizer never trigger in Android but trigger in iOS
Recently I published App in PlayStore & AppStore. I using DOTNET MAUI 8.0.403 in Mac VS Code. Now I'm experiencing an issue where the swipe gesture doesn't triger in Android Emulator. But it ...
0
votes
1
answer
36
views
UISwipeGestureRecognizer Not Triggering Consistently on a Custom UIView with Blur Effect
I'm building a custom notification system for my iOS app where temporary notification views are displayed on top of the screen. These views have a layered structure with a UIVisualEffectView for a ...
0
votes
1
answer
30
views
How to use Swipe Method with TableView editing
I am using leadingSwipeActionsConfigurationForRowAt method for Swipe. I also using drag and drop feature here.
Property tableview.editing is true in this condition. then i can't get callback of swipe.
...
0
votes
2
answers
92
views
How to add "UISwipeGestureRecognizer" and "TapGestureRecognizer" in Same viewcontroller in swift
I need left swipe gesture for my viewcontroller and in the same viewcontroller i have one imageView if i click that imageView i need to use "UITapGestureRecognizer" and push to another ...
0
votes
2
answers
39
views
How to add SwipeGesture to tableView with 0 cells in Swift
I need to add a left swipe gesture recognizer to my CommentVC. My CommentVC includes a tableView, so if I have 0 cells in CommentVC then I am unable to swipe back.
My code: with this code I can swipe ...
0
votes
1
answer
515
views
I want to enable swipe gestures in media element in Maui Community Toolkit
I will mention this is not an issue on Windows. I don't know about mac or iOS. On Windows it just works.
I would like to enable swipe gestures in Media Player for Maui Community toolkit. The player ...
0
votes
0
answers
215
views
How to dismiss a view controller by swiping left corner and keep view floating or animating in case swipe is not complete?
How to achieve something like this where you open view controller which expands from a cell and can be closed by swiping only at left side of the screen with animation. Right now Im focussed on only ...
0
votes
1
answer
287
views
Card Slide Gallery in UIViewController
Is there a way to implement a card sliding gallery in a UIViewController? The gallery is not supposed to have images but buttons. I'm thinking the app "Bumble" for example when it comes to ...
0
votes
2
answers
113
views
UIGestureRecognizer works outside of UIView borders instead of inside
I've implemented a popup notification in my app to show user the data was being updated successfully or not.
This popup is just a UIView instantiated from .xib. Here is screenshot of elements ...
0
votes
0
answers
288
views
SwiftUI WATCH Drag Gesture sensitive over superview; only specified on subview
I've got an VStack in a View and one of the items in it is another View (created in a separate file because of it's complexity). Inside that subview, I have a ZStack which overlays several images, and ...
0
votes
0
answers
294
views
Swipe up and swipe down the viewController when user tap on ViewController swift
Two viewControllers one is aboutViewController and second one is customViewController.Added customViewController in aboutViewController as an subView on bottom position now I want when user swipe up ...
1
vote
0
answers
192
views
Sliding card not showing transition from withAnimation { } block
so I have a sliding card located at the bottom of the page. When it appears, it starts with the top of edge of the card at about halfway up the screen. I want to make it so that when I tap it or swipe ...
0
votes
2
answers
1k
views
Change Current Date To One Before / One After - Swift DatePicker
I have a date picker. I would like to change the date displayed to a date before or after using gesture control. Ie, when a person swipes left the date goes one day behind and if a person swipes right ...
0
votes
1
answer
160
views
How to display dummy data on swipe action on UIView
I have a containerView and inside that container view I have 2 UILabel(titleLabel and detailLabel) and 1 UIImageView(myImage)..I have added UI swipegesture to the containerView...Now I want to display ...
0
votes
1
answer
574
views
How can I create swipe to delete for each section in UIcollecionview?
I had a custom SwiftDataTable. which having the columns and row. I want to do swipe to delete each section. I don't have idea how to do that! any help much appreciated!
0
votes
2
answers
1k
views
How to Swipe UIView on Button Action in all four directions
I have Two UIButtons on Right and Left and a UIView At Middle of the button..
I have to swipe ContainerView with some animation on UIButton click..
If user tap on right button ContainerView swipe to ....
0
votes
0
answers
70
views
How to get the location/indexPath of a swipe gesture?
override func viewDidLoad() {
super.viewDidLoad()
self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "SavedExercise")
let swipeRight = ...
1
vote
0
answers
306
views
Can UISwipeGestureRecognizer work for view in UIHostingController?
As per answer in https://stackoverflow.com/a/64726641/3286489, I can perform a swipe down to dismiss a fullscreen ViewController using UISwipeGestureRecognizer.
However, when I transfer the same code ...
0
votes
1
answer
320
views
Swippable collection view with collection view layout
How can I achieve this type collection view?
Ref Image
When user swipe up, cell should move to up.
I have searched a lot and tried many logic, but not able to match same.
0
votes
1
answer
1k
views
How to send Swipe Action to UIView in Swift
I am trying to clone Tinder, have done with swipe left (dislike person) and right (like person) by Yalantis/Koloda (https://github.com/Yalantis/Koloda). I also have two images for button like/dislike. ...
0
votes
0
answers
146
views
Pan, Tap, and Long Press recognizers work, but Swipe gestures do not
I have tested the following code, and only the selectors for the pan, tap, and long press recognizers activate. I have tried adding the recognizers inside the UIView subclass and adding the ...
1
vote
1
answer
987
views
Recognize UISwipeGestureRecognizer with two-finger scroll on trackpad
I have a UISwipeGestureRecognizer added to my view that is recognized when you swipe down with one finger. I want this to also be recognized when you swipe down with two fingers on a trackpad while ...
3
votes
2
answers
128
views
UISwipeGestureRecognizer and ShareExtension: Different behaviour on iOS 12.4 and 13.0 and latest (bug or undocumented?)
I am creating a Share extension and faced with a strange behaviour during my tests on iOS 13.0 and later. I use UISwipeGestureRecognizer to interpret user's swiping gestures on the main view on my ...
2
votes
1
answer
107
views
UISwipeGestureRecognizer Not Getting Added To View
I'm trying to add a swipe gesture recognizer to my view. Here's a snippet of code from my viewDidLoad()method of the main view controller file:
self.view.addGestureRecognizer(UISwipeGestureRecognizer(...
1
vote
1
answer
855
views
UISwipeGestureRecognizer doesn't work on presented VC and view
The hierarchy:
MainVC calls present(GameVC, animated: true, completion: nil)
let vc = self.storyboard?.instantiateViewController(withIdentifier: "GameVC") as! GameVC
self.present(vc, animated: true, ...
0
votes
1
answer
84
views
Swipe gesture confused with moving a UISlider nob?
I have a UISlider inside of my view, the view itself have a swipeGesture added to it. So that when the user swipe in the right hand-side direction, the viewController will go back to the previous one. ...
2
votes
1
answer
1k
views
how to add swipe gesture or swipe function between two overlap container view using segmented control, like instagram profile?
I am new to iOS and trying to build an app to learn more. I'm stuck at the last stage of my application. I want to be able to swipe between two container views using segmented control. I want to add ...
1
vote
0
answers
3k
views
The number of view controllers provided (0) doesn't match the number required (1) for the requested transition
we have used the page view controller to show the swipe to instruct the user to login instruction, we are facing core foundation crash and below is the stack trace and code snippet:
StackTrace:
...
0
votes
3
answers
96
views
UISwipeGestureRecognizer not calling function on UITextView
I have a UITextView object that displays an error message. The object drops down from the top of the screen like a notification. By default it stays stationary for 5 seconds and then goes back up ...
-2
votes
1
answer
694
views
Scrolling CollectionView to left after ending should open another View Controller & same functionality on right end
I have a collection view in which 4-5 images are there & its scrolling direction is horizontal. I want to push to a view controller after the end of scrolling of both the side (i.e) left & ...
0
votes
1
answer
82
views
Xamarin forms: SwipeGestureRecognizer also enable MasterDetailPage Navigation Drawer?
I have implemented the swiping feature using SwipeGestureRecognizer on my homepage. But the problem is the home page is a child of a MasterDetailPage. So when I swipe to left in the homepage, the ...
0
votes
1
answer
3k
views
How to disable UINavigation swipe pop gesture only for UITabbarController?
I am working on iOS application and I am using Swift 4.2 and Xcode 10.3.
I have to enable swipe gesture to pop UIViewController in UINavigationController and this is my application screen flow:
Flow ...
-1
votes
1
answer
43
views
Updating CoreData through UISwipeGestureRecognizer on custom UITableViewCell?
I am adding a custom swipe gesture on a UITableViewCell that updates CoreData when a specific cell is swiped. However, I am having trouble passing the indexPath of the swiped cell to the function that ...
1
vote
2
answers
307
views
Swipe left only in landscape
I make an app is working in portrait and landscape left et i would like to know how the swipe left only work in landscape left and the swipe up only in portrait.
I do this in viewDidLoad:
// swipe ...
2
votes
1
answer
202
views
Using trailingSwipeActionsConfigurationForRowAt with a panGestureRecognizer with Swift
I have a view which I've added a UIPanGestureRecognizer to.
I've noticed that the trailingSwipeActionsConfigurationForRowAt does not work together with this pan. When I remove the pan the trailing ...
2
votes
2
answers
491
views
UISwipeGestureRecognizer on tvOS is giving me a EXC_BAD_ACCESS
I'm trying to add gesture code for swipe up/down to my UIViewController in a tvOS app.
override func loadView() {
let swipeDown = UISwipeGestureRecognizer(
target: self,
...
0
votes
1
answer
75
views
Postponing gesture recognizer in swift (UISwipeGestureRecognizer)
I have a swipe gesture recognizer that I turn off after the user swipes. That’s when I have a series of animations. 1st, a view will move in the direction that the user swipes. Then based on the ...
4
votes
5
answers
2k
views
Swipe gesture interrupts UISlider control in iOS 13, but not previous iOS versions
Note: This is the iOS 13 beta, but also could apply to the official release tomorrow.
Update 2: I replaced it with a larger thumb image, and I'm still having a problem.
Update: It looks like it ...
-1
votes
2
answers
281
views
I want to add image and text side by side in a trailingSwipeActionsConfigurationForRowAt and leading swipe action when swipe in a tableview swift
I know when we set the height of cell to 91 it shows both image and text vertically but I want horizontally side by side without setting height.
-1
votes
2
answers
635
views
How to move view back to its position?
I have the following code to swipe a view out of the screen when swiped right
let gesture = UISwipeGestureRecognizer(target: self, action: #selector(swipedView(_:)))
gesture.direction = .right
...
0
votes
2
answers
311
views
Pan (not swipe) between view controllers
I am creating an app that has a user interface similar to Tinder.
By this, I mean that there are three primary view controllers that can be "panned" between. The user can simply drag to move to any ...
0
votes
1
answer
1k
views
How to know that when the user swipe up / down?
I have UICollectionView in my ViewController (Please check below attached image for view hierarchy). How can we detect when the user swipes up or down?
It doesn't matter if we add gesture recognizer ...
1
vote
1
answer
76
views
How to recognize left/right swipe gestures? More lenient than UISwipeGestureRecognizer.direction.right/left
I'm trying to implement swipe to dismiss views in my app. I'm using a UISwipeGestureRecognizer, and on a left or right swipe the view gets dismissed. However, UISwipeGestureRecognizer has an ...
0
votes
1
answer
937
views
Page turning animation in ios pdfkit singlepage displaymode
I've recently implemented a pdfviewer using the ios PDFKit library, and am using singlepage mode rather than continuous mode. Following the solution to another question I've implemented the page ...
7
votes
3
answers
5k
views
ios PDFKit displaymode = singlepage only shows the first page of the pdf
I'm trying to display a pdf on ios via apples PDFKit library, and rather than use PDFDisplayMode.singlePageContinuous mode, I want to stop at page breaks so I'm trying to use PDFDisplayMode.singlePage....
0
votes
0
answers
50
views
swift4 UISwipeGestureRecognizer Viewcontroller with large title and cells not working
I have a ViewController with large titles. In my ViewController are 2 cells. UISwipeGestureRecognizer is not working by swiping down. I want to call a searchController with this swipe-action in the ...
0
votes
1
answer
88
views
UISwipeGestureRecogniser in UICollectionViewCell issue
I have a UICollectionView where each cell has a left and right UISwipeGestureRecognizer which gives the illusion of flipping an image for a menu. The thing that I cannot figure out how to do is "...
0
votes
1
answer
237
views
How to add button target function in IBAction method
I am using SWRevealViewController for side menu. while i click on menuBtn, im performing right toggle operation. I want the same when i swipe right Can any one Please Help me with it.
class ...
0
votes
0
answers
410
views
Cant go back to original ViewController with .left swipe?
I have a viewcontroller that is embedded in a navigation controller. I wanted a Swipe right to go right left and change viewcontroller from VC1 to VC2, which thanks to people on stackoverflow i ...
0
votes
1
answer
114
views
Swipe Action latency
I have added swipe action to my application. I have 5 buttons which represent days of the week. When I click on one button it changes the array of my table view and some things.
Swipe action does ...