-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make rotating of cards customizable #76
base: master
Are you sure you want to change the base?
Conversation
Thanks for contributing! 😄 reviewing your PR right now |
@@ -11,9 +11,9 @@ Pod::Spec.new do |s| | |||
s.author = { "Zhixuan Lai" => "[email protected]" } | |||
s.social_media_url = "http://twitter.com/ZhixuanLai" | |||
|
|||
s.platform = :ios, "8.0" | |||
s.platform = :ios, "9.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason this change to drop support for iOS 8?
@@ -56,15 +56,18 @@ class ViewManager : NSObject { | |||
private let containerView: UIView | |||
private let miscContainerView: UIView | |||
private let animator: UIDynamicAnimator | |||
private let rotatingSpeedMultiplyer: CGFloat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be rotatingSpeedMultiplier
self.view = view | ||
self.containerView = containerView | ||
self.miscContainerView = miscContainerView | ||
self.animator = animator | ||
self.swipeableView = swipeableView | ||
self.state = ViewManager.defaultSnappingState(view) | ||
self.rotatingSpeedMultiplyer = rotMul |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here as well, Multiplyer
should be spelt Multiplier
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and anywhere else in the file where you've used or defined a variable with that in it's name
@ilyavelilyaev can you also explain what kind of rotation this affects? Is it the rotation that takes place when you drag to the left or right? |
Now rotating of cards seems to be to fast. Added property, which can adjust the desirable speed.