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 Polyline #116

Closed
charliefancelli opened this issue Apr 13, 2017 · 4 comments
Closed

Add shadow to Polyline #116

charliefancelli opened this issue Apr 13, 2017 · 4 comments
Assignees
Milestone

Comments

@charliefancelli
Copy link

Hi,

Can we add a shadow to a Polyline?
I saw that the documention as to be added.

When i set

let spider = Polyline(points: points).fill(with: redColor)
spider.opacity = 0.6
spider.effect = DropShadow(radius: 10, offset: Point(x: 2, y: 2), color: Color.rgba(r: 0, g: 0, b: 0, a: 0.6))

the polyline doesn't have any shadow.

Thanks ?

@ystrot ystrot self-assigned this Apr 13, 2017
@ystrot
Copy link
Member

ystrot commented Apr 13, 2017

Hi,

Unfortunately Shadow/Effects API is work in progress and doesn't work yet. It's not clear when it will be released, but I can let you know when it happens.

@ystrot ystrot added this to the 0.9.0 milestone Apr 13, 2017
@charliefancelli
Copy link
Author

hi @ystrot ,

Thanks for the reply, nice if the feature will be released in the futur.

@ystrot ystrot modified the milestones: 0.9.0, 0.9.1 Sep 19, 2017
@ystrot ystrot modified the milestones: 0.9.1, 0.9.x Nov 28, 2017
@f3dm76
Copy link
Collaborator

f3dm76 commented Jun 21, 2018

On the master branch you can now drop the shadow like this

yourShape.effect = Effect.dropShadow()

screen shot 2018-06-21 at 17 39 00

@ystrot ystrot modified the milestones: 0.9.x, 0.9.2 Jun 21, 2018
@ystrot
Copy link
Member

ystrot commented Jun 28, 2018

0.9.2 released, so closing this issue.

@ystrot ystrot closed this as completed Jun 28, 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

No branches or pull requests

3 participants