mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
fix meda timeline screen flipped scroll view blur being applied always
This commit is contained in:
+24
-12
@@ -47,22 +47,34 @@ struct MediaEventsTimelineScreen: View {
|
||||
if context.viewState.shouldShowEmptyState {
|
||||
emptyState
|
||||
} else {
|
||||
ScrollView {
|
||||
Group {
|
||||
switch context.viewState.bindings.screenMode {
|
||||
case .media:
|
||||
mediaContent
|
||||
case .files:
|
||||
filesContent
|
||||
}
|
||||
|
||||
header
|
||||
}
|
||||
if #available(iOS 26, *) {
|
||||
scrollView
|
||||
// Remove the glass effect of iOS 26+
|
||||
// A flipped table view will always trigger it
|
||||
// since the nav bar thinks is always at the bottom.
|
||||
.scrollEdgeEffectHidden()
|
||||
} else {
|
||||
scrollView
|
||||
}
|
||||
.scaleEffect(.init(width: 1, height: -1))
|
||||
}
|
||||
}
|
||||
|
||||
private var scrollView: some View {
|
||||
ScrollView {
|
||||
Group {
|
||||
switch context.viewState.bindings.screenMode {
|
||||
case .media:
|
||||
mediaContent
|
||||
case .files:
|
||||
filesContent
|
||||
}
|
||||
|
||||
header
|
||||
}
|
||||
}
|
||||
.scaleEffect(.init(width: 1, height: -1))
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
private var mediaContent: some View {
|
||||
let columns = [GridItem(.adaptive(minimum: 80, maximum: 150), spacing: 1)]
|
||||
|
||||
Reference in New Issue
Block a user