Sometimes Gesture recognises child views with horizontal scroll view, but putting the content of the drag gesture onChanged into DispatchQueue solves the issue. From: .onChanged { value in guard value.startLocation.x > 10 else { return } /// Existing Code } to .onChanged { value in DispatchQueue.main.asyncAfter(deadline: .now()) { guard value.startLocation.x > 10, isDragging else { return } /// Existing Code } }
You are an ABSOLUTE LEGEND!!!!!!! I have used a few of your tutorials to help build an app, actually having a very annoying bug, it’s to do with your horizontal parallax scrolling code, could I PM you with a question?
Really impressive! Couple of questions 1. How do you cancel the sidebar on click of a button? Not sure, how to call reset() when button is clicked. 2. It will be good to have scrolling on the menu items 3. I am also trying to change the view on tap of a button and have an existing Tab View that is visible. This would be additional tab view and don’t know if that’s the right approach
Amazing as always!! I have a request: SwiftUI code for profile picture adjustment; like social media apps. When setting a new profile picture you get the adjustment screen where you can zoom in & out, move it in any direction and fit the subject in the allowed space (usually a circle). Thank you!
How to use a NavigationLink for the Tabs ?? I could until now use only a sheet. If I use a NavigationStack, wich is required for NavigationLink, the UI of the SideBar will broke.
Sometimes Gesture recognises child views with horizontal scroll view, but putting the content of the drag gesture onChanged into DispatchQueue solves the issue.
From:
.onChanged { value in
guard value.startLocation.x > 10 else { return }
/// Existing Code
}
to
.onChanged { value in
DispatchQueue.main.asyncAfter(deadline: .now()) {
guard value.startLocation.x > 10, isDragging else { return }
/// Existing Code
}
}
Excellent job... 💯
Impressive! Thank you!
You are an ABSOLUTE LEGEND!!!!!!! I have used a few of your tutorials to help build an app, actually having a very annoying bug, it’s to do with your horizontal parallax scrolling code, could I PM you with a question?
Really impressive! Couple of questions
1. How do you cancel the sidebar on click of a button? Not sure, how to call reset() when button is clicked.
2. It will be good to have scrolling on the menu items
3. I am also trying to change the view on tap of a button and have an existing Tab View that is visible. This would be additional tab view and don’t know if that’s the right approach
1. After tab change use showMenu.toggle()
2. Put the tab button in ScrollView
3. Just let tabBar visible
Amazing as always!! I have a request: SwiftUI code for profile picture adjustment; like social media apps. When setting a new profile picture you get the adjustment screen where you can zoom in & out, move it in any direction and fit the subject in the allowed space (usually a circle). Thank you!
Check this out,
ruclips.net/video/1Fz86eQjxus/видео.html
@@Kavsoft that’s exactly what I wanted. Thank you!
is there a way to disable it for child views?
How do I make it so each button changes to a specific tab view?
Use TabView with a selection and change the selection when the button is tapped, also, hide the default tab bar using
toolbar(.hidden, for: .tabbar)
How to use a NavigationLink for the Tabs ?? I could until now use only a sheet. If I use a NavigationStack, wich is required for NavigationLink, the UI of the SideBar will broke.
have you solved this problem yet?
i am confusing about it too
Can you provide a video where Instagram explore section page opening and closing animation like Instagram
Check this out,
ruclips.net/video/HiCR-K9ec4A/видео.html
Full stack project please