mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-25 09:41:00 +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.viewModel = viewModel
|
||||||
self.parentViewModel = parentViewModel
|
self.parentViewModel = parentViewModel
|
||||||
|
|
||||||
super.init(frame: .zero)
|
super.init(
|
||||||
|
frame: .init(
|
||||||
|
origin: .zero,
|
||||||
|
size: .init(width: UIScreen.main.bounds.width, height: .minimumButtonDimension)))
|
||||||
|
|
||||||
initialSetup()
|
initialSetup()
|
||||||
}
|
}
|
||||||
|
@ -31,6 +34,8 @@ final class CompositionInputAccessoryView: UIToolbar {
|
||||||
private extension CompositionInputAccessoryView {
|
private extension CompositionInputAccessoryView {
|
||||||
// swiftlint:disable:next function_body_length
|
// swiftlint:disable:next function_body_length
|
||||||
func initialSetup() {
|
func initialSetup() {
|
||||||
|
autoresizingMask = .flexibleHeight
|
||||||
|
|
||||||
var attachmentActions = [
|
var attachmentActions = [
|
||||||
UIAction(
|
UIAction(
|
||||||
title: NSLocalizedString("compose.browse", comment: ""),
|
title: NSLocalizedString("compose.browse", comment: ""),
|
||||||
|
|
Loading…
Reference in a new issue