Comments (5)
Hi tskulbru!
When I started this project, the Polymer-Project Paper Elements were still in beta, and the designs were changing each week. Believe it or not, the ripple used to only cover a portion of the control, not the full control. I had taken screen captures since there was not official documentation on how much the ripple should cover and was estimating based on those captures.
I see now that the default behavior has changed, but don't worry, I already have a solution for you :)
CGFloat tapCircleDiameter
The CGFloat value representing the Diameter of the tap-circle.
By default it will be the result of MAX(self.frame.width, self.frame.height).
tapCircleDiameterFull will calculate a circle that always fills the entire view.
Any value less than or equal to tapCircleDiameterFull will result in default being used.
The constants: tapCircleDiameterLarge, tapCircleDiameterMedium,
and tapCircleDiameterSmall are also available for use.
You can set this to any positive float value, but it seems that the value tapCircleDiameterFull is the one you want.
Try this and let me know if it is still not behaving properly:
myButton.tapCircleDiameter = tapCircleDiameterFull;
I will make some changes to the readme file to make this more obvious in the future. Sorry if it was hard to find.
Thanks for using BFPaperButton! :)
from bfpaperbutton.
Yes, i tested it with tapCircleDiameterFull, it fills the view which is better. But I don't think the animation is correct, it looks to me like it just fills the view and fades in from center. It doesn't look nor feel like the ripple animation on Android.
Other than than I'm very happy with the library, and i just hope that the library will be on par with the material design spec.
from bfpaperbutton.
Could you attach a gif of the issue? I don't quite understand what's happening. By default the circle should spawn from the tap location:
BOOL rippleFromTapLocation
A flag to set to YES to have the tap-circle ripple from point of touch. If this is set to NO, the tap-circle will always ripple from the center of the view. Default is YES.
If you are referring to the background fade, then have you tried to set the property:
.backgroundFadeColor = [UIColor clearColor];
from bfpaperbutton.
Hehe, sorry for not being able to explain good enough. I'll see about giving you a gif (its a project for a client which i cant disclose a image for as of yet), but ill have to create a new project for it.
Thanks for the quick replies!
from bfpaperbutton.
No problem! I'm in Tokyo timezone so I might not always be this fast to respond, sorry.
from bfpaperbutton.
Related Issues (20)
- hi~ I have found a problem with the button HOT 11
- the button does not work when it is created in a UITableViewCell HOT 12
- Fast touch up inside HOT 2
- Use with Storyboard and IB?
- only really notice effects on long press HOT 8
- Swift 2.0 Version HOT 6
- How to use it with Storyboard? HOT 2
- Animations can't play when Buttons in UIScrollView HOT 3
- Run is not smooth HOT 3
- Animation on button doesn't work when button's parent ViewController is embed into a container view (i.e child viewController) HOT 4
- You have this bug HOT 3
- layoutSubviews ignores enabled property HOT 1
- bug HOT 2
- FEATURE REQUEST : Button Radius HOT 1
- Get rid of dots HOT 3
- Raised using Storyboard
- Crash iOS 9.2 below archive by xcode 10.1
- Problem : delegate for global animation
- Disabled state for raised button no longer removes shadow after tapped at least once. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bfpaperbutton.