ergunemr / bottompopup Goto Github PK
View Code? Open in Web Editor NEWBottomPopup provides a popup-like presentation style to any view controller
License: MIT License
BottomPopup provides a popup-like presentation style to any view controller
License: MIT License
Is there a chance to have the ViewController under the Popup accessable?
The User should interact with both the Popup and the underlying ViewController.
Like the Maps App...
Thanks alot first of all, this has been a very helpful library lately. Just wanted to know if I can change height of Navigation Controller according to the ViewController size e:g Root View Controller size of Navigation Controller is 200 and when I push another View controller, I want the size of Navigation Controller to be changed to 500. Is this possible currently or can it be added in future updates?
Can we open this view from top to bottom? If yes then where should be change the code?
Thank's in advance.
Hey,
big thanks for this library
I should use UITextField in BottomPopup, but when call up the keyboard, we can't see what we had input.
getting "[!] Unable to find a specification for BottomPopup
" error while installing with pod
i present the navigation controller with navigationBar, which is the subclass of BottomPopupNavigationController. custom the height is 400. it manage controller A.
in some case, i need push a controller( just call B) from A, and B controller height is same as the keywindow, just like the nomal push action.
What to do in this situation?
I want to get the following functionality: showing closed popup with its visible area in bottom and expand it on pull. Is that possible using your pod, @ergunemr ?
how can I work when bottom view present ,then the parent view will be access ,please help with this topic ,like map bottom search view.
I would like to change the height of the popup view controller after I select a button, how can I go about doing this?
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__SwiftValue set]: unrecognized selector sent to instance
can I popup a ViewController(named A) with NavigationBar, and use this bar to push another ViewController(named B)
A and B has same height
How can we handle dynamic height?
Now we can only set height , constant in popupHeight.
Thanks.
I have integrated bottom popup into one of my application.
Which do have tableview on selected and row i am trying to pop up exampleViewController.
its loading first time quickly as per given inputs, on second time its takes time.
On double click on tableviewcell its loading quickly. Did not understand what went wrong.
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("Selected Index",indexPath.row)
guard let popupVC = storyboard?.instantiateViewController(withIdentifier: "StatusDetailViewController") as? StatusDetailViewController else { return }
popupVC.height = 600
popupVC.topCornerRadius = 30
popupVC.presentDuration = 0.3
popupVC.dismissDuration = 0.3
popupVC.shouldDismissInteractivelty = true
popupVC.popupDelegate = self
present(popupVC, animated: true, completion: nil)
}
StatusDetailViewController is same as ExamplePopupViewController.
HI, I Could see podspec has s.swift_version = "3.0". is your pod swift 4 supportive ?
Thanks
Hey, I want to add a textfield into the view.
But the keyboard is hiding it.
How can we resolve that?
Andras
I subclass the BottomPopupViewController
and override the following 3 methods. I can be built on my local, but failed on the build server with Fastlane. The following errors occurred:
�[31m❌ �[0mPositionSelectViewController.swift:58:19: �[31mmethod does not override any method from its superclass�[0m
override func getPopupHeight() -> CGFloat {
�[36m ^�[0m
�[31m❌ �[0mPositionSelectViewController.swift:62:19: �[31mmethod does not override any method from its superclass�[0m
override func getPopupPresentDuration() -> Double {
�[36m ~~~~~~~~ ^�[0m
�[31m❌ �[0mPositionSelectViewController.swift:66:19: �[31mmethod does not override any method from its superclass�[0m
override func getPopupDismissDuration() -> Double {
The weird thing is it can be built if I delete the override
keyword of the methods(of course the functions take no effects), which lead build fail on my local.
Both my local Mac and the build server running Xcode Version 11.3.1 (11C504) with CocoaPods version 1.8.4.
Invested two days for the issue, and can't get it to work on both sides. Any help or advice will be appreciated.
Would it be possible to add support for scroll views to this library so we can replicate UI such as the apple maps/stock app drawer. There are a few library's that do this already such as PullUpController or FloatingPanel. However these library are either very large or do not use all the latest apple APIs such as UIPresentationControllers or UIPercentDrivenInteractiveTransition.
Any plans to add some delegate functions like willDismiss
or didChangeToFrame
?
So we can layout content under the Popup?
I have a view (Now playing music) above Tabbar I am adding it like this
appDelegate.window?.rootViewController?.addChild(nowPlayingView) appDelegate.window?.addSubview(miniPlayerView.view)
when I click on it. It shows the full view inside the full view there is a button that displays the BottomPopup I am unable to display the BottomPopup above the presented View I tried the different solution but only 1 worked with me
`
let transition = CATransition()
transition.type = CATransitionType.push
transition.subtype = CATransitionSubtype.fromTop
popupVC.view.layer.add(transition, forKey: nil)
appDelegate.window?.rootViewController?.addChild(popupVC)
appDelegate.window?.addSubview(popupVC.view)
popupVC.didMove()
`
and that's lead to another issue that's I am unable to dismiss it on swipe
please, can someone help?
Thank you
I want to reload the height after data comes from server without loosing animation effect. its jerking if call this line
(self.presentationController as? BottomPopupPresentationController)?.containerViewWillLayoutSubviews()
fileprivate func adjustListHeight()-> CGFloat{ let height = UIScreen.main.bounds.size.height * 50 / 100 // if self.dataArray.count == 0{ // // return height // }else{ // if dataArray.count > 10{ // let height = UIScreen.main.bounds.size.height * 50 / 100 // return height // }else{ // return CGFloat(((dataArray.count + 1) * 44) + 70) // } // } return height } override var popupHeight: CGFloat{ return adjustListHeight() }
override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { ... }
override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
Hey,
big thanks for this library, its nice to see these kind of menus done properly using UIPresentationControllers, UIPercentDrivenInteractiveTransition etc. It would be awesome if this library changes it logic from inheritance to Composition. So instead of subclassing it would be nice to just add the content view controller as a child view controller of the pop up menu.
Is it possible to show this popup from top?
Hi,
Thanks for open source this.
I've seen how we can control the height, I'm wondering does it support customized width so that it will look even better on iPad.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.