mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Some UI tweaks for New App Layout (#6535)
* Some UI tweaks for New App Layout
This commit is contained in:
+12
-10
@@ -24,13 +24,6 @@ struct SpaceSelector: View {
|
||||
|
||||
@Environment(\.theme) private var theme: ThemeSwiftUI
|
||||
|
||||
@ViewBuilder
|
||||
private var rightButton: some View {
|
||||
Button(VectorL10n.create) {
|
||||
viewModel.send(viewAction: .createSpace)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: Public
|
||||
|
||||
@ObservedObject var viewModel: SpaceSelectorViewModel.Context
|
||||
@@ -59,9 +52,18 @@ struct SpaceSelector: View {
|
||||
.frame(maxHeight: .infinity)
|
||||
.background(theme.colors.background.edgesIgnoringSafeArea(.all))
|
||||
.navigationTitle(viewModel.viewState.navigationTitle)
|
||||
.navigationBarItems(
|
||||
trailing: rightButton
|
||||
)
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .confirmationAction) {
|
||||
Button(VectorL10n.create) {
|
||||
viewModel.send(viewAction: .createSpace)
|
||||
}
|
||||
}
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
Button(VectorL10n.cancel) {
|
||||
viewModel.send(viewAction: .cancel)
|
||||
}
|
||||
}
|
||||
}
|
||||
.accentColor(theme.colors.accent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user