mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
better naming
This commit is contained in:
parent
9dc4b8df82
commit
23ee663dba
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ extension ComposerViewState {
|
|||
}
|
||||
}
|
||||
|
||||
var isForcedMinimised: Bool {
|
||||
var isMinimiseForced: Bool {
|
||||
isLandscapePhone || !textFormattingEnabled
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue