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 shadow to rounded view #20

Merged
merged 2 commits into from
Jul 11, 2016
Merged

Add shadow to rounded view #20

merged 2 commits into from
Jul 11, 2016

Conversation

felixLam
Copy link
Member

@felixLam felixLam commented Jul 9, 2016

The shadow plays nicely with transparent views.

Fixes #17

simulator screen shot 09 07 2016 02 31 06

we want to mask the area that cast the shadow in order to not show a shadow there
we do not want to mask the area above (and outside of bounds)
we use the even-odd fill rule and add the entire bounds as rect plus the shadow length above
this yields the lip beeing covered twice (even) while everything above is covered once (odd)
Copy link
Member

Choose a reason for hiding this comment

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

being

@mollidor
Copy link
Member

👍

@felixLam felixLam merged commit 9f8c80b into master Jul 11, 2016
@felixLam felixLam deleted the feature/shadow branch July 11, 2016 07:48
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

3 participants