Comments (4)
Hi @deshan, I'm going to need more information:
- This panel performs dismiss operation but it appears again? or a new panel comes up?
- Where the code above is executed? After pressing a button?
- Could you check if the panel
deinit
method is called when the panel is dismissed?
from panels.
Sorry for the late reply.
- Yes I am creating a new panel. but dismiss animation shows, but prev panel stays
- Yes after button press
- deinit not get called. Memory grows.
Thank you and again many apologies!
from panels.
I think found the issue.
This would be needed.
self.panel?.removeFromParentViewController()
self.panel?.view.removeFromSuperview()
Ofc it's been called in
self.panel?.removeContainer()
But the second time it doesn't get called the reason is self.panel is nil
self.panel = nil moving inside the closure may fix the issue? haven't tried. I manually called them inside my code.
UIView.animate(withDuration: configuration.dismissAnimationDuration, animations: {
panelView.frame.origin = CGPoint(x: 0, y: self.containerView!.frame.size.height)
}) { _ in
self.panel?.removeContainer()
completion?()
self.panel = nil // moving here may fix the issue
}
from panels.
@deshan I have a question you said
Yes I am creating a new panel. but dismiss animation shows, but prev panel stays
how many panels are you presenting? If you create more than one, then you wouldn't have control over it and it will stay on the screen. You should dismiss the first panel before present the new one.
from panels.
Related Issues (20)
- Panel reopens after being dismissed HOT 7
- Specify a platform for this target in Example Podfile
- Panels Programmatically HOT 8
- 'NSInvalidArgumentException
- need some help HOT 3
- UITextField will cause the panel to collapse HOT 1
- curveTopCorners() wont work HOT 2
- Support Swift Package Manager HOT 1
- How to apply "modalPresentationStyle = .popover"? HOT 2
- crash when running on real device HOT 2
- keyboard present and Penel moves up with the keyboard
- CocoaPods version is not match the latest version
- support orienation change HOT 2
- content height of collectionview inside panel wrong when orientation change
- Example app crashes if you tap "Close" twice HOT 2
- Show the Panels on top of a TabBar HOT 2
- Does it support below iOS 10? HOT 1
- HeaderHeight calculation pushes Header further down with each show HOT 7
- Drag gesture doesn't follow the movement 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 panels.