mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-23 00:40:59 +00:00
Various optimizations for StatusRow
This commit is contained in:
parent
c40ca6eb4d
commit
ba7b76f5a1
3 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,6 @@ public struct StatusCardView: View {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.fill(Color.gray)
|
.fill(Color.gray)
|
||||||
.frame(height: 200)
|
.frame(height: 200)
|
||||||
.shimmering()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(height: 200)
|
.frame(height: 200)
|
||||||
|
|
|
@ -212,7 +212,6 @@ public struct StatusMediaPreviewView: View {
|
||||||
.fill(Color.gray)
|
.fill(Color.gray)
|
||||||
.frame(maxHeight: imageMaxHeight)
|
.frame(maxHeight: imageMaxHeight)
|
||||||
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
||||||
.shimmering()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
.frame(maxWidth: isNotifications ? imageMaxHeight : proxy.frame(in: .local).width)
|
||||||
|
|
|
@ -99,8 +99,10 @@ public struct StatusRowView: View {
|
||||||
trailing: .layoutPadding))
|
trailing: .layoutPadding))
|
||||||
.accessibilityElement(children: viewModel.isFocused ? .contain : .combine)
|
.accessibilityElement(children: viewModel.isFocused ? .contain : .combine)
|
||||||
.accessibilityActions {
|
.accessibilityActions {
|
||||||
|
if UIAccessibility.isVoiceOverRunning {
|
||||||
accesibilityActions
|
accesibilityActions
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.background {
|
.background {
|
||||||
Color.clear
|
Color.clear
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
|
|
Loading…
Reference in a new issue