mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-29 03:31:02 +00:00
Don't include post actions button in capture mode
This commit is contained in:
parent
2828550531
commit
c8c7f2d29d
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue