mirror of
https://github.com/metabolist/metatext.git
synced 2024-12-22 21:46:28 +00:00
Fix toolbar issues
This commit is contained in:
parent
32f557866a
commit
0f4c2f6d01
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue