Horizontal Drag Gesture on Vertical ScrollView - swiftui

I have an app similar to most with a main view that scrolls vertically. On top of that, I have a horizontal drag gesture to pull out a side menu.
The issue I am running into when trying to drag the menu open is any vertical movement at all stops the horizontal gesture from working until the vertical movement has ended. So it is very difficult to get the horizontal gesture to activate.
I have tried using .highPriorityGesture and .simultaneousGesture but neither seem to help.

Adding a minimumDistance on the Vertical gesture should fix it
DragGesture(minimumDistance: 10)

Related

Why does a swipe gesture stop advancing paged view controller after opening and closing side menu?

My app, written in SwiftUI 2.0, is based on a UIPageViewController which displays four panels, in the common onboarding style. The user can swipe through them, or advance them using an arrow button at the bottom.
I also have a button in the upper left that opens a slide out menu, which can be closed by with a tap gesture anywhere on the interface. This is driven by changing the geometry in the swiftui "Geometry Reader", in which the page controller is embedded.
All this works correctly, except when the user closes the side window, the swipe gestures fail to activate the transition between pages. The active page slides with the swipe, but then snaps back into place. However, the arrow button still advances the UIPageViewController to the appropriate next page.
What causes the swipe gesture to become inactive after this slide out is triggered?
I've posted a small sample app isolating the issue here: https://github.com/stevepvc/Slide-and-Swipe-Concept. The code controlling the slide out menu is in "Top Content View".

SwiftUI fullscreen horizontal swipe with dot indicator

Many apps have an intro view that has fullscreen pages with a dot indicator at the bottom. Sometimes it is used to gather same basic information, sometimes to introduce the app features.
How can I realize that?
I tried the ScrollView with a horizontal setting. The issue is to set up the content to fit the screen and have the edges snap on scroll. Second issue is the have a dotted indicator that highlights the current page.
you need to wrap UIPageControl with UIViewControllerRepresentable.

Custom Swipe gesture from one point with (x,y) to another point with (x,y) in swift 3

I am using swift gesture in my app But these swipes are just up - down - right and left - I want some thing more !!!
I want to have swipe gesture from one point to another point with x and y
for example from one point in the middle of the screen to another point near right with special X and Y
and the most important thing is that how can I use this code to all devices?! because when I am using for example iPhone 4s it is more different than iPad pro screen
One way you could do this is by adding a transparent view to the area of the screen that you want a gesture to be recognized in. So, if we consider your case, you could add a view that is presented over the center of its superview to some point near the right of its superview. Set the isOpaque property to false. Add a swipe gesture to this view with the target being the superview, and the action being the method of the superview that you want to execute when the swipe gesture is recognized on the newly added transparent subview.

CListCtrl Vertical Scrollbar in List View

I have a CListCtrl in "List" view mode and I can't get it to scroll vertically instead of horizontally.
I've tried the suggesting here: Vertical Scrollbar in CListCtrl but that only works when using the icon view mode. It doesn't work in list mode.
So, how can I get my CListCtrl in list view mode to scroll vertically?
Have you tried this?
"Change the Alignment style in designer from Left to Top."
Vertical Scrollbar in CListCtrl

UIScrollView in cocos2d

I have added the UIScrollView into the COCOS2D game engine using
[[[CCDirector sharedDirector] openGLView] addSubview: tempScrollView];.
On that scroll view I have added a image view and a buttons. My problem is that the scroll view is scrolling vertically only. I want the UIScrollView to scroll horizontally only. Also I want the images to be rotate as well. I have tried the view transform property but its not working in my case.
Does any body know how to do this in cocos2d?
Horizontaly only ? try to change contentsize. e.g.:
ccp(5000,winsize.height)