[ios] Shift module container offset to be below as opposed to above
Change-Id: I8abfb9c3e22260b6572cf4da3f1cc53ebd6623e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3892207
Auto-Submit: Chris Lu <thegreenfrog@chromium.org>
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047455}
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
index 45d9f206..816bbe9 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_module_container.mm
@@ -48,6 +48,9 @@
// The shadow opacity of this container.
const float kShadowOpacity = 0.06;
+// The vertical offset of the shadow.
+const float kShadowOffsetY = 3.0f;
+
// Vertical space allocated to the Trending Queries module content.
const float kTrendingQueriesContentHeight = 103;
@@ -80,6 +83,7 @@
self.layer.shadowColor = [UIColor blackColor].CGColor;
self.layer.shadowRadius = kShadowRadius;
self.layer.shadowOpacity = kShadowOpacity;
+ self.layer.shadowOffset = CGSizeMake(0, kShadowOffsetY);
// Render shadow as bitmap to improve snapshot render layout performance.
self.layer.shouldRasterize = YES;
self.layer.rasterizationScale = UIScreen.mainScreen.scale;