File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ struct TimelineItemMenu: View {
51
51
}
52
52
}
53
53
. accessibilityIdentifier ( A11yIdentifiers . roomScreen. timelineItemActionMenu)
54
+ . presentationPage ( )
54
55
. presentationDetents ( [ . medium, . large] )
55
56
. presentationBackground ( Color . compound. bgCanvasDefault)
56
57
. presentationDragIndicator ( . visible)
@@ -233,6 +234,17 @@ private extension EncryptionAuthenticity {
233
234
}
234
235
}
235
236
237
+ private extension View {
238
+ /// Uses the old page style modal so that on iPadOS 18 the presentation detents have no effect.
239
+ @ViewBuilder func presentationPage( ) -> some View {
240
+ if #available( iOS 18 . 0 , * ) {
241
+ presentationSizing ( . page)
242
+ } else {
243
+ self
244
+ }
245
+ }
246
+ }
247
+
236
248
// MARK: - Previews
237
249
238
250
struct TimelineItemMenu_Previews : PreviewProvider , TestablePreview {
You can’t perform that action at this time.
0 commit comments