better naming

This commit is contained in:
Mauro Romito 2022-11-23 13:40:15 +01:00
parent 9dc4b8df82
commit 23ee663dba
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ extension ComposerViewState {
}
}
var isForcedMinimised: Bool {
var isMinimiseForced: Bool {
isLandscapePhone || !textFormattingEnabled
}
}

View file

@ -116,7 +116,7 @@ struct Composer: View {
wysiwygViewModel.setup()
}
}
if !viewModel.viewState.isForcedMinimised {
if !viewModel.viewState.isMinimiseForced {
Button {
wysiwygViewModel.maximised.toggle()
} label: {
@ -230,7 +230,7 @@ struct Composer: View {
}
.padding(.horizontal, horizontalPadding)
.padding(.bottom, 4)
.onChange(of: viewModel.viewState.isForcedMinimised) { newValue in
.onChange(of: viewModel.viewState.isMinimiseForced) { newValue in
if wysiwygViewModel.maximised && newValue {
wysiwygViewModel.maximised = false
}