From 0f4c2f6d01cf459cb205d270a1331a377bdd2b99 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 18 Jan 2021 21:16:21 -0800 Subject: [PATCH] Fix toolbar issues --- Views/CompositionInputAccessoryView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Views/CompositionInputAccessoryView.swift b/Views/CompositionInputAccessoryView.swift index 9b5f629..b83d6bb 100644 --- a/Views/CompositionInputAccessoryView.swift +++ b/Views/CompositionInputAccessoryView.swift @@ -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: ""),