Don't include post actions button in capture mode
This commit is contained in:
parent
2828550531
commit
c8c7f2d29d
|
@ -7,6 +7,7 @@ import Shimmer
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
public struct StatusRowView: View {
|
public struct StatusRowView: View {
|
||||||
|
@Environment(\.isInCaptureMode) private var isInCaptureMode: Bool
|
||||||
@Environment(\.redactionReasons) private var reasons
|
@Environment(\.redactionReasons) private var reasons
|
||||||
@Environment(\.isCompact) private var isCompact: Bool
|
@Environment(\.isCompact) private var isCompact: Bool
|
||||||
|
|
||||||
|
@ -69,7 +70,7 @@ public struct StatusRowView: View {
|
||||||
.accessibilityAction {
|
.accessibilityAction {
|
||||||
viewModel.navigateToDetail()
|
viewModel.navigateToDetail()
|
||||||
}
|
}
|
||||||
if viewModel.showActions, theme.statusActionsDisplay != .none {
|
if viewModel.showActions, theme.statusActionsDisplay != .none, !isInCaptureMode {
|
||||||
StatusRowActionsView(viewModel: viewModel)
|
StatusRowActionsView(viewModel: viewModel)
|
||||||
.padding(.top, 8)
|
.padding(.top, 8)
|
||||||
.tint(viewModel.isFocused ? theme.tintColor : .gray)
|
.tint(viewModel.isFocused ? theme.tintColor : .gray)
|
||||||
|
|
Loading…
Reference in New Issue