hemangshah / hhfloatingview Goto Github PK
View Code? Open in Web Editor NEWAn easy to use and setup floating view for your app. 🎡
License: MIT License
An easy to use and setup floating view for your app. 🎡
License: MIT License
Implement a way to update options at run time.
Example:
Favourite
[Show UnFavourite Icon, Other options...]
Un favorite
[Show Favourite Icon, Other options...]
So here's the case:
You have added floating view top above some descriptions so because of the space occupied by the handle button and (when open) by the option buttons we need to provide a way to developer that they can set the transparency level of these buttons.
handlerButtonTransparency | when open | when close
optionButtonsTransparency | when open | when close
Right now, there's no way to explicitly open the floating view.
As we already have a close
method. We may have a open
method or a toggle
.
That user will have freedom to move floating view if it overlaps some other UI.
Hello,
Thanks for this great repo.
I'de like to add a title to each of the options in the menu.
I tried to modify the setupUI() and updateUI() but they're not displaying. Any idea ?
As I follow Installation section
If I install manually and follow example project, It works well.
If I install via cocoa pod and follow the same example project, I get this error
When I change access level of reload and close functions to public, it works well.
@hemangshah
Please help consider change these methods accordingly. Or if you're OK with these changes, I will create PR for them.
Thanks,
Huy
hello, I want to change background of handler when we click on it i tried this way but not working can you please help me out and also i want transparent background when we click on handler also please guid me on how to achieve that functionality.
func floatingView(floatingView: HHFloatingView, didTapHandler isOpening: Bool) {
let configure = HHFloatingViewConfiguration()
if isOpening == true {
configure.handlerImage = #imageLiteral(resourceName: "closeFloting")
configure.handlerColor = UIColor.white
}
else {
configure.handlerImage = #imageLiteral(resourceName: "FloatingButton")
configure.handlerColor = UIColor(red: 47/255.0, green: 89/255.0, blue: 246/255.0, alpha:
}
}
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.