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

Add configurable position #27

Merged
merged 2 commits into from Mar 13, 2018
Merged

Add configurable position #27

merged 2 commits into from Mar 13, 2018

Conversation

gravitylow
Copy link
Contributor

Added the option to have the action sheet drop down from the top.

Demo

Thanks for the great lib!

Copy link
Owner

@beryu beryu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very interested feature!
Please review my comments.

@@ -182,17 +188,26 @@ public class CustomizableActionSheet: NSObject {
}
}
}
let positionX: CGFloat = 0
let positionY: CGFloat!
let moveY: CGFloat!
Copy link
Owner

@beryu beryu Mar 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use ! .
Please set default value.

@@ -212,7 +227,12 @@ public class CustomizableActionSheet: NSObject {

// Hide animation
self.maskView.alpha = 1
let moveY = targetView.bounds.height - self.itemContainerView.frame.origin.y
let moveY: CGFloat!
Copy link
Owner

@beryu beryu Mar 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

! is not necessary in here.
Please remove it.

@gravitylow
Copy link
Contributor Author

Thanks for your comments! The changes have been made in 778952b -- please let me know if you'd like the commits squashed.

Copy link
Owner

@beryu beryu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks fixing!

@beryu beryu merged commit 1878d58 into beryu:master Mar 13, 2018
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

2 participants