Fix toolbar issues
This commit is contained in:
parent
32f557866a
commit
0f4c2f6d01
|
@ -17,7 +17,10 @@ final class CompositionInputAccessoryView: UIToolbar {
|
|||
self.viewModel = viewModel
|
||||
self.parentViewModel = parentViewModel
|
||||
|
||||
super.init(frame: .zero)
|
||||
super.init(
|
||||
frame: .init(
|
||||
origin: .zero,
|
||||
size: .init(width: UIScreen.main.bounds.width, height: .minimumButtonDimension)))
|
||||
|
||||
initialSetup()
|
||||
}
|
||||
|
@ -31,6 +34,8 @@ final class CompositionInputAccessoryView: UIToolbar {
|
|||
private extension CompositionInputAccessoryView {
|
||||
// swiftlint:disable:next function_body_length
|
||||
func initialSetup() {
|
||||
autoresizingMask = .flexibleHeight
|
||||
|
||||
var attachmentActions = [
|
||||
UIAction(
|
||||
title: NSLocalizedString("compose.browse", comment: ""),
|
||||
|
|
Loading…
Reference in New Issue