-
Notifications
You must be signed in to change notification settings - Fork 387
Add drop shadow to separate bar button and body text #2573
Conversation
Mind posting a screenshot? Sent with GitHawk |
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.
I def think we need to do this, but the shadow in the screenshot is a little intense IMO. Any way to make it even smaller? Maybe playing w/ the other shadow properties?
buttonBarView.layer.shadowColor = UIColor.black.cgColor | ||
buttonBarView.layer.shadowOpacity = 1 | ||
buttonBarView.layer.shadowPath = shadowPath.cgPath | ||
buttonBarView.layer.shouldRasterize = true |
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 this required?
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.
Not required, but since the view doesn't change, it helps to reduce shadow-drawing. Can omit it and re-add it if there was any performance issue
Ya lets give that a spin Sent with GitHawk |
A possible way to implement the issue mentioned in #2196