giridharvc7 / vcfloatingactionbutton Goto Github PK
View Code? Open in Web Editor NEWA Floating Action Button just like Google inbox for iOS
License: MIT License
A Floating Action Button just like Google inbox for iOS
License: MIT License
The controller is not compatible with iOS 7.x version. Here, I have attached 2 images. 1.) Application tarts (Taken from iPhone 4s simulator - iOS 7.1), 2.) When Tap on "+" button. It disappears the view completely for iOS 7.x. In iOS 8.x version, it works fine, even after removing UIVisualEffectView.
I dragged the folder with all the classes and Nib file into my project, imported the header file and I still cannot get it to work on my swift file. =/
Apart from the fact that I somehow can't get the button to display in my swift app, everything crashes (also in your example app) when hideWhileScrolling is set to false or NO.
I think that's because you're trying to remove an observer that's not even there. I'll create a pull request with an updated setHideWhileScrolling method.
awesome job, using it in my app .. but just found something. will making the navigation bar's translucent property to false screw something up with the alignment?
Right now, the button shows correctly with translucent = true (by default) but not visible when it's false
P.S. I'm not using auto layout. Just tableview that takes up view.frame and
let floatFrame = CGRectMake(UIScreen.mainScreen().bounds.size.width-44-22, UIScreen.mainScreen().bounds.size.height-44-22, 40, 44)
this is my code
let floatFrame = CGRectMake(UIScreen.mainScreen().bounds.size.width - 44 - 20, UIScreen.mainScreen().bounds.size.height - 44 - 20, 44, 44);
let buttonFV: VCFloatingActionButton = VCFloatingActionButton(frame: floatFrame, normalImage: UIImage(named: "plus.png"), andPressedImage: UIImage(named: "cross.png"), withScrollview: self.socialTable)
buttonFV.imageArray = ["fb-icon.png","fb-icon.png","fb-icon.png"]
buttonFV.delegate = self
buttonFV.hideWhileScrolling = true
self.view.addSubview(buttonFV)
When I scroll up a table view, Floating button is not hiding. How can I resolve this issue?
Is it posible you could make a swift version ?
When I click the button to dismiss menu, it showed a message:
<UIVisualEffectView 0x15ed6de60> is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.
Is it a bug? Or is it just intended to be implemented like that?
I use the action buttons on a scrollview but when i click the plus button, all sub-buttons appear but they are translated upward. What might be causing this? Thanks!
Instead of using delegate for handling actions, use blocks.
Hi,
First and foremost excellent component, but i have been witnessing some strange behaviour, but not able to simulate it, at times when i tap on the + button it disappears and nothing appears on screen, no tableview, no blur background, it just disappears and only the parent view on which it has been sub-viewed is visible. But if i rebuild the source by cleaning and building, at time it fixes it self. Not sure i can put my finger on the issue. Any help would be greatly appreciated.
Why am I getting this error?
No visible @interface for 'VCFloatingActionButton' declares the selector 'initWithFrame:normalImage:andPressedImage:'
Hi,
how do we set alpha of bgView to 0 but make menuTable still visible. Thanks!
Hey guys, how can I add another delegate that when i click on VCFloatingActionButton it self? What I wanna do is when I click on VCFloationgActionButton I want present another view controller. thanks in advance.
Create a Cocoapod for VCFloatingActionButton
https://cocoapods.org/
https://guides.cocoapods.org/making/making-a-cocoapod.html
Hi,
It's showing nothing when we run the app on iOS 14
See video for detailed explanation
https://www.dropbox.com/s/paubgb26lf6h3u6/RPReplay_Final1600084354.mp4?dl=0
I'd be cool to also add Cocoapods support. I done this implementation myself last week for my library. Just follow this post and this checklist.
Lemme know if you need any help! ๐
I am getting these two error in my project after importing VCFloatingActionButton
1.
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_VCFloatingActionButton", referenced from:
objc-class-ref in CreateServiceWizardViewController.o
ld: symbol(s) not found for architecture x86_64
2.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Hey guys, please help me regarding floating animation doesn't working properly in UITableViewController. Below I attached the video and code for better understand :
Video :
https://youtu.be/m-ivFXjXLOM
Code :
Thank you in advance.
Hi. Is it posible to add action to the floating button it self ? (the "+" button) to call another viewcontroller ? Thanks
Hey All,
I need to change the animation when user click on the plus button.
i want the table view cells starts from the top of screen and end then with the end of screen
Regards,
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.