Skip to content

Commit

Permalink
chore: Updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CatchABus committed Dec 13, 2024
1 parent 8e55388 commit a28331d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui-canvas/canvas.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a28331d

Please sign in to comment.