Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ilyavelilyaev
Copy link
Contributor

Now rotating of cards seems to be to fast. Added property, which can adjust the desirable speed.

@AndrewSB
Copy link
Collaborator

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"
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link
Collaborator

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 👍

Copy link
Collaborator

@AndrewSB AndrewSB Sep 29, 2016

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

@AndrewSB
Copy link
Collaborator

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants