Don't include post actions button in capture mode

This commit is contained in:
Thomas Ricouard 2023-02-22 18:49:17 +01:00
parent 2828550531
commit c8c7f2d29d
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import Shimmer
import SwiftUI
public struct StatusRowView: View {
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
@Environment(\.redactionReasons) private var reasons
@Environment(\.isCompact) private var isCompact: Bool
@ -69,7 +70,7 @@ public struct StatusRowView: View {
.accessibilityAction {
viewModel.navigateToDetail()
}
if viewModel.showActions, theme.statusActionsDisplay != .none {
if viewModel.showActions, theme.statusActionsDisplay != .none, !isInCaptureMode {
StatusRowActionsView(viewModel: viewModel)
.padding(.top, 8)
.tint(viewModel.isFocused ? theme.tintColor : .gray)