mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
SP3.1: Update room settings for Spaces #5231
- Added list bottom padding to MatrixItemChooser view
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ final class MatrixItemChooserCoordinator: Coordinator, Presentable {
|
||||
let view = viewProvider.view(with: viewModel.context).addDependency(AvatarService.instantiate(mediaManager: parameters.session.mediaManager))
|
||||
matrixItemChooserHostingController = VectorHostingController(rootView: view)
|
||||
} else {
|
||||
let view = MatrixItemChooser(viewModel: viewModel.context)
|
||||
let view = MatrixItemChooser(viewModel: viewModel.context, listBottomPadding: nil)
|
||||
.addDependency(AvatarService.instantiate(mediaManager: parameters.session.mediaManager))
|
||||
matrixItemChooserHostingController = VectorHostingController(rootView: view)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ enum MockMatrixItemChooserScreenState: MockScreenState, CaseIterable {
|
||||
|
||||
return (
|
||||
[service, viewModel],
|
||||
AnyView(MatrixItemChooser(viewModel: viewModel.context)
|
||||
AnyView(MatrixItemChooser(viewModel: viewModel.context, listBottomPadding: nil)
|
||||
.addDependency(MockAvatarService.example))
|
||||
)
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ struct MatrixItemChooser: View {
|
||||
// MARK: Properties
|
||||
|
||||
@ObservedObject var viewModel: MatrixItemChooserViewModel.Context
|
||||
let listBottomPadding: CGFloat?
|
||||
@State var searchText: String = ""
|
||||
|
||||
// MARK: Private
|
||||
@@ -74,6 +75,9 @@ struct MatrixItemChooser: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
if let listBottomPadding = listBottomPadding {
|
||||
Spacer().frame(height: listBottomPadding)
|
||||
}
|
||||
}
|
||||
.accessibility(identifier: "sectionsList")
|
||||
.frame(maxHeight: .infinity, alignment: .top)
|
||||
|
||||
Reference in New Issue
Block a user