From a28331d0d130c3ae7e861a9d1508a1600abd945c Mon Sep 17 00:00:00 2001 From: Dimitris - Rafail Katsampas Date: Fri, 13 Dec 2024 19:59:55 +0200 Subject: [PATCH] chore: Updated comment --- src/ui-canvas/canvas.ios.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui-canvas/canvas.ios.ts b/src/ui-canvas/canvas.ios.ts index bfc80aa..ab20160 100644 --- a/src/ui-canvas/canvas.ios.ts +++ b/src/ui-canvas/canvas.ios.ts @@ -1813,8 +1813,7 @@ export class Canvas implements ICanvas { if (paint.shadowLayer) { const s = paint.shadowLayer; - // Bitmaps have their coordinate system flipped vertically and that affects shadows offset - // so flip shadow offset y as well + // Bitmaps have their coordinate system flipped vertically, however shadow offsets ignore this and must be handled manually const offsetY = this.mIsBitmap ? -s.dy : s.dy; CGContextSetShadowWithColor(ctx, CGSizeMake(s.dx, offsetY), s.radius, s.color.ios.CGColor);