kofktu / kuipopover Goto Github PK
View Code? Open in Web Editor NEWEasy to use PopOver in iOS
License: MIT License
Easy to use PopOver in iOS
License: MIT License
hi,
can you add the support to swift package manager??
thank
The area that the repo seems to be missing entirely is the ability to easily use the repo and assign "self" to the popover to handle the proper workflow of actually using the popover's reason for being show. Perhaps I have a preset notion of what I am seeking that is keeping me from seeing the answer.
I searched "delegate" in the issues and found nary a mention, so thought to ask. thx.
As per the subject line, a bit of isolation might help the popOver stand out more.
Popover seems to dismiss fine when using code such as:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let filterVC = storyboard.instantiateViewController(
withIdentifier: "filterViewController") as! FilterViewController
DispatchQueue.main.asyncAfter(deadline: .now() + 10.0) {
filterVC.dismissPopover(animated: true, completion: {
print("CustomPopOverViewController.dismiss.completion")
})
}
However when trying to call it directly i.e.
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let filterVC = storyboard.instantiateViewController(
withIdentifier: "filterViewController") as! FilterViewController
filterVC.dismissPopover(animated: false)
There is no action. Any ideas where I am going wrong? Thank you
You can see this in the demo, by breaking any of the completion handlers and running the example. You can seem them called immediately, which great negates the ease-of-use factor if collecting info.
This error was come up when I tried to install KUIPopOver through Pods.
Anyway to populate a table (pass values? completion?) after the popover has been presented?
Minor note: some popovers (for example the first in a chain), may not display the navbar. Flipping back to such a popover results in an alteration of height 44 under the original height. A tad confusing to track.
Here is my test project.
I use a viewController as a local property(to keep some info when it is opened again). But if I click the trigger button very fast. An error happens:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modal view controller on itself. Presenting controller is <testPopup.TipViewController: 0x103c12e40>.'
Test project is here.
shouldDismissOnTap bug fix
Migration to Swift 4.2
XCode 10
Hi,
Would it be possible to add another enum to change the position of the arrow. Right now if I mention UIPopoverArrowDirection
as .right
, it appears on the middle right side of the view. In certain screens, I would either need it at the right top or right bottom.
Would be great if this addition could be done.
Thanks!
I have imported @import KUIPopOver; in .h file still I'm unable to call showPopover(sourceView: UIVIew)
method.
Thanks for the great project.
Can I hide the arrow? Just show the custom view is good for me.
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.