Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/ui/src/text-view/scrolling-and-sizing-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
padding: 10 20 10 20;
}

.p-20 {
padding: 20;
}

.m-b-10 {
margin-bottom: 10;
}
Expand Down Expand Up @@ -47,7 +51,7 @@ TextView {
}

.shadow {
box-shadow: inset 0 0 5 5 #000000;
box-shadow: 2 2 6 6 #ff0000;
}

.body {
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/text-view/scrolling-and-sizing-page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<TextView hint="fixed-height gradient" class="fixed-height gradient" />
</StackLayout>

<StackLayout class="p-10">
<StackLayout class="p-20">
<TextView hint="fixed-height shadow" class="fixed-height shadow" />
</StackLayout>

Expand Down
2 changes: 1 addition & 1 deletion packages/core/ui/styling/background.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ function drawBoxShadow(view: View): void {

// Shadow opacity is handled on the shadow's color instance
shadowLayer.shadowOpacity = boxShadow.color?.a ? boxShadow.color.a / 255 : 1;
shadowLayer.shadowRadius = shadowRadius;
shadowLayer.shadowRadius = shadowRadius * 0.65;
shadowLayer.shadowColor = boxShadow.color?.ios?.CGColor;
shadowLayer.shadowOffset = CGSizeMake(offsetX, offsetY);

Expand Down