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

Support animation direction #3

Merged
merged 7 commits into from
May 7, 2017
Merged

Conversation

cruisediary
Copy link
Owner

ISSDUE #2

AS IS

  • ONLY TOP-RIGHT to BOTTOM-LEFT

TO BE

  • Add Direction Enum
enum Point {
  case left
  case top
  case right
  case bottom
  case topLeft
  case topRight
  case bottomLeft
  case bottomRight
  case custom(position: CGPoint)
}

EXAMPLE

  pastelView.startPoint = .left
  pastelView.endPoint = .custom(CGPoint(x: 0.8, y: 1.0))

@cruisediary cruisediary self-assigned this May 7, 2017
@cruisediary cruisediary merged commit 6739c19 into master May 7, 2017
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.

None yet

1 participant