Various optimizations for StatusRow
This commit is contained in:
parent
c40ca6eb4d
commit
ba7b76f5a1
|
@ -25,7 +25,6 @@ public struct StatusCardView: View {
|
|||
Rectangle()
|
||||
.fill(Color.gray)
|
||||
.frame(height: 200)
|
||||
.shimmering()
|
||||
}
|
||||
}
|
||||
.frame(height: 200)
|
||||
|
|
|
@ -212,7 +212,6 @@ public struct StatusMediaPreviewView: View {
|
|||
.fill(Color.gray)
|
||||
.frame(maxHeight: imageMaxHeight)
|
||||
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
||||
.shimmering()
|
||||
}
|
||||
}
|
||||
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
||||
|
|
|
@ -99,7 +99,9 @@ public struct StatusRowView: View {
|
|||
trailing: .layoutPadding))
|
||||
.accessibilityElement(children: viewModel.isFocused ? .contain : .combine)
|
||||
.accessibilityActions {
|
||||
accesibilityActions
|
||||
if UIAccessibility.isVoiceOverRunning {
|
||||
accesibilityActions
|
||||
}
|
||||
}
|
||||
.background {
|
||||
Color.clear
|
||||
|
|
Loading…
Reference in New Issue