bfeher / bfpaperbutton Goto Github PK
View Code? Open in Web Editor NEWiOS Buttons inspired by Google's Paper Material Design.
License: MIT License
iOS Buttons inspired by Google's Paper Material Design.
License: MIT License
Hi,
I noticed that if you "touch up" outside of the button (as if you want to cancel your touch), the "TouchUpInside" event is sometimes fired.
It happens if you "touch up outside" too close to the button (for example, in an area the growing disk would cover if it wasn't clipped).
Is there a way to limit the "touch up inside" event to the area of the visible button?
Sincerely,
Jery
Edit: I'm not sure but it may be a duplicate of issue #3, in that case, sorry for that.
In iOS 13 has an error.
[UIView setAnimationDidStopSelector:@selector(animationDidStop:finished:)];
hi,You have this bug,Your self.layer did not clear
Upload here can not gif,You see here http://www.jianshu.com/p/ab9e31208915
it really confused me that I don't know how to create a BFPaperButton using storyboard
According to http://www.google.com/design/spec/animation/responsive-interaction.html#responsive-interaction-surface-reaction any touches made to a paper element (which has touch feedback) should do a quick droplet animation and quickly fade out. The animation bounds should be the view's bounds. This behaviour is already implemented. However, if you look at the "touch ripple: drag in and out" you can see that the droplet animation fills the entire view. This isnt the case in today's code. If i press and hold on a corner in a BFPaperButton only half of the view gets filled, probably due to the fact that the diameter of the ripple is never larger than the view's width. Which then means if clicking on a corner, you only fill half of the visible view.
I may have overlooked something, but it looks to me to be a small oversight on your behalf.
I set the button isRase = FALSE
and my button was on a view which is smaller than screensize
I don't know why, everytime I hit it the first time it always have a ripple animate further than the bounce on the right....
I m using swift and the button is from storyboard.
can you help:)
Hi,
Thank you for BFPaperButton, it looks great)
Could you help me some issue I got..
I am using BFPaperButtons inside UITableVIewCell,
when I push It fast, it stops and begins again not from correct state,
so it look like duplicate animation, pls see the gif file I attached.
And one more queation - is it possible not to "pause" animation
when you hold the button, but let it finish straight away?
thank u.
I would like to put two buttons side by side and have the left side of button one be curved and the right side of button two be curved
Also if I could have the ability to specify if the radius us specified on specific corners
Button.RadiusTopLeft =
Button.RadiusTopRight =
Button.RadiusBottomLeft =
Button.RadiusBottomRight =
Also would it be possible to specify that the button is transparent with a border
Button.BorderWidth =
Button.BorderColor =
We are having to use a couple of images in a view and would like to replace them with your button
It seems as though the button isn't raised when using a custom gradient
OC Code:
In a ViewController , the code >> [self.view addSubView:BFPaperButton ] , it is run normal and smooth.
I have a problem , In my ViewController has a UIScrollView , and some UIView in the UIScrollView , and put a BFPaperButton in the UIView. Run app and click the BFPaperButton ,it is not smooth.
A Swift 2.0 version of this would be amazing!
How to change the font button?
Following is my tricky solution:
Please fix it, thanks. I really like your works.
hello,
We found a bug at line 78, class: BFPapaerButton.m
please help me check and fix it
layoutSubviews ignores the enabled property, hence resets the appearance of the button to enabled while it may actually be and work as enabled.
My simple but dirty workaround is the following:
extension BFPaperButton {
override public func layoutSubviews() {
super.layoutSubviews()
self.enabled = self.enabled
}
}
I have a viewcontroller, which has a container view, and this container view embeds(segue) a PageViewController, the 2nd page (which is another ViewController) in this PageViewController has the BFPaperButton. The animations don't work in this setup, but if I were to make the 2nd Page's ViewController as the Is Initial View Controller
then the animations works perfectly, what is going on here??
Dear author: I just add the buttons in my UIScrollView . the question is I can receive the click method ,but the animation can't play without a long press . can you help me ?
I have meet his problem when using BFPaperButton and BFPaperCell, here are screenshots taken from my phone.
Is it possible to change the behavior of the growing circle to grow behind the mask of the button?
I have tried many places of the .m file with no luck.
only on the first time I tap do I notice effects on a short press. Every other time needs to be a long press to observe effects. any reason why?
i created one bfpapperbutton in a UIViewController,it worked well.
but when i created a bfpapperbutton in a custom UITableViewCell,
the button did not work.
Before a raised BFPaperButton is tapped, it will remove its shadow and become "flat" when disabled. However, tapping on said button at least once will cause its shadow to remain in the disabled state.
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.