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
Conversation
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 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! |
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.
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! |
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 not necessary in here.
Please remove it.
Thanks for your comments! The changes have been made in 778952b -- please let me know if you'd like the commits squashed. |
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.
Thanks fixing!
Added the option to have the action sheet drop down from the top.
Thanks for the great lib!