this works but we need to expose also the maxCompressed height and the minHeight

This commit is contained in:
Mauro Romito
2022-11-10 15:41:36 +01:00
parent 1dfac5ba28
commit 4c6ecc0216
2 changed files with 26 additions and 13 deletions
@@ -71,7 +71,7 @@ struct Composer: View {
)
}
}
private var composerContainer: some View {
let rect = RoundedRectangle(cornerRadius: cornerRadius)
return VStack(spacing: 12) {
@@ -140,7 +140,7 @@ struct Composer: View {
}
}
}
private var sendMediaButton: some View {
return Button {
showSendMediaActions()
@@ -155,7 +155,7 @@ struct Composer: View {
.padding(.trailing, 8)
.accessibilityLabel(VectorL10n.create)
}
private var sendButton: some View {
return Button {
sendMessageAction(wysiwygViewModel.content)
@@ -191,12 +191,12 @@ struct Composer: View {
var body: some View {
VStack(spacing: 8) {
if wysiwygViewModel.maximised {
RoundedRectangle(cornerRadius: 4)
.fill(theme.colors.quinaryContent)
.frame(width: 36, height: 5)
.padding(.top, 10)
}
if wysiwygViewModel.maximised {
RoundedRectangle(cornerRadius: 4)
.fill(theme.colors.quinaryContent)
.frame(width: 36, height: 5)
.padding(.top, 10)
}
HStack(alignment: .bottom, spacing: 0) {
if !viewModel.viewState.textFormattingEnabled {
sendMediaButton