diff --git a/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryContextViewController.swift b/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryContextViewController.swift index 6ad1fcdf09..50ac8d71f9 100644 --- a/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryContextViewController.swift +++ b/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryContextViewController.swift @@ -253,10 +253,11 @@ class StoryContextViewController: OWSViewController { playbackProgressView.isUserInteractionEnabled = false if UIDevice.current.hasIPhoneXNotch || UIDevice.current.isIPad { + let cornerRadius: CGFloat = if #available(iOS 26, *) { 40 } else { 18 } // iPhone with notch or iPad (views/replies rendered below media, media is in a card) - mediaViewContainer.layer.cornerRadius = 18 + mediaViewContainer.layer.cornerRadius = cornerRadius mediaViewContainer.clipsToBounds = true - onboardingOverlay.layer.cornerRadius = 18 + onboardingOverlay.layer.cornerRadius = cornerRadius onboardingOverlay.clipsToBounds = true repliesAndViewsButton.autoPinEdge(.top, to: .bottom, of: mediaViewContainer) playbackProgressView.autoPinEdge(.bottom, to: .top, of: repliesAndViewsButton, withOffset: -OWSTableViewController2.defaultHOuterMargin) diff --git a/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryItemMediaView.swift b/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryItemMediaView.swift index 87fc054b92..eb24e2f4d4 100644 --- a/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryItemMediaView.swift +++ b/Signal/src/ViewControllers/HomeView/Stories/Context View/StoryItemMediaView.swift @@ -50,7 +50,7 @@ class StoryItemMediaView: UIView { updateMediaView() if UIDevice.current.hasIPhoneXNotch || UIDevice.current.isIPad { - layer.cornerRadius = 18 + layer.cornerRadius = if #available(iOS 26, *) { 40 } else { 18 } clipsToBounds = true }