Comments (10)
Value of type 'FloatingPanelController?' has no member 'panGestureRecognizer'
from floatingpanel.
Here I would like to drag the view even if I drag the tab bar. In other words, I have to detect the tab bar drag event and pass it to the underneath view.
I'm sorry I can't imagine this use case... Could you please give me a screen capture video?
from floatingpanel.
Thanks for the quick response!
Here is the use case
from floatingpanel.
Thanks, @Thavasidurai. What's a problem in FloatngPanel library?
from floatingpanel.
There is no issue in the library. I am just requesting help or raising a feature request to solve my use case.
Is there any provision to call something from parent view controller which moves up the FloatngPanel? If so, I can get the touch point from the tab bar and pass it to the FloatngPanel. I hope this would solve my problem.
If you know any other better approach to solve my use case, please guide me.
Thanks in advance!
from floatingpanel.
I am getting expected output following an ugly way!
I just added a pan gesture to the tab bar and passed it to the floating panel's handle pan gesture method it's working perfectly but I need to modify the library code to change the access control to public from private. I know this is not the right approach, Is there any other way to handle it nicely or Is it possible to provide any other provision in the library to handle it without touching library code?
from floatingpanel.
I just added a pan gesture to the tab bar and passed it to the floating panel's handle pan gesture method it's working perfectly but I need to modify the library code to change the access control to public from private.
Sounds great. I'd like to consider a better approach. Could you let me know which method you changed?
from floatingpanel.
Thanks again for your quick response! @scenee
I made all the required changes to access the @objc func handle(panGesture: UIPanGestureRecognizer)
method from my view controller class so that I can pass whatever I receive from tab bar pan gesture handling method.
Below are my change logs
-
In FloatingPanelController.swift file, line number 128
private var floatingPanel: FloatingPanel!
topublic var floatingPanel: FloatingPanel!
-
In FloatingPanel.swift file, line number 10
class FloatingPanel:
topublic class FloatingPanel:
-
In FloatingPanel.swift file, line number 750
override func responds(to aSelector: Selector!)
tooverride public func responds(to aSelector: Selector!)
-
In FloatingPanel.swift file, line number 754
override func forwardingTarget(for aSelector: Selector!)
tooverride public func forwardingTarget(for aSelector: Selector!)
-
In FloatingPanel.swift file, line number 258
@objc func handle(panGesture: UIPanGestureRecognizer)
to@objc public func handle(panGesture: UIPanGestureRecognizer)
from floatingpanel.
How about adding a target to FloatingPanleController.panGestureRecognizer
?
fpc.panGestureRecognizer.addTarget(self, action: #selector(handleFloatingPanel(panGesture:)))
...
}
@objc func handleFloatingPanel(panGesture: UIPanGestureRecognizer) {
// Do something
}
from floatingpanel.
I added panGestureRecognizer
property in FloatingPanelController
on v1.1.0 🙂
https://github.com/SCENEE/FloatingPanel/blob/master/Framework/Sources/FloatingPanelController.swift#L86
from floatingpanel.
Related Issues (20)
- how to presented modally ViewController on floating panel
- Question about how to change the animation when displaying
- Issues after migrating to 2.0 HOT 1
- Transition to layout with a single anchor breaks panel behavior HOT 2
- Dismiss action does not remove contentViewController? HOT 2
- I can't find version 2.8.0 in pod search
- Extend or override backdropview HOT 5
- cannot respond to the didSelectItemAt | didSelectRowAt method
- Change backdropAlpha for FloatingPanelLayout blocks parent ViewController
- Small Devices (iPhone SE) Library won't add space for grabber HOT 3
- Second floating panel doesn't update to width of landscape view HOT 3
- SWIFTUI supports
- Is it possible to disable attraction between anchors? HOT 1
- Any support of Privacy Manifest? HOT 2
- 【Fixed】iPhone SE 2nd scroll lock HOT 1
- [SwiftUI] UIViewControllerRepresentable HOT 1
- Adaptive Layout doesn't work with compositional layout of collection view HOT 4
- Tracking WebView is broken in iOS 17.4.x HOT 5
- SWIFTUI - scroll issue
- Strange scrolling behavior - all content of the FloatingPanel is scrolling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from floatingpanel.