Skip to content
mylnikova.alisa edited this page Jun 1, 2018 · 2 revisions

You can now add shadows to shapes. Use default value:

Shape(form: Circle(cx: 0, cy: 0, r: 150), fill: Color.purple, effect: Effect.dropShadow())

Or specify your own values:

let circle = Shape(form: Circle(cx: 50, cy: 50, r: 50), fill: Color.purple)
circle.effect = Effect.dropShadow(dx: 10, dy: 10, radius: 5, color: .green)

Clone this wiki locally