From 9cfb1b3ef9ab8a77280691621610ff09c26663be Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Sun, 3 Jan 2021 17:52:37 -0800 Subject: [PATCH] Cleanup --- ViewModels/Sources/ViewModels/CompositionViewModel.swift | 4 +++- Views/CompositionInputAccessoryView.swift | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ViewModels/Sources/ViewModels/CompositionViewModel.swift b/ViewModels/Sources/ViewModels/CompositionViewModel.swift index 66115f8..02c22b9 100644 --- a/ViewModels/Sources/ViewModels/CompositionViewModel.swift +++ b/ViewModels/Sources/ViewModels/CompositionViewModel.swift @@ -108,5 +108,7 @@ private extension CompositionViewModel { private extension String { static let urlCharacterCount = 23 - var countShorteningIfURL: Int { starts(with: "http://") || starts(with: "https://") ? Self.urlCharacterCount : count } + var countShorteningIfURL: Int { + starts(with: "http://") || starts(with: "https://") ? Self.urlCharacterCount : count + } } diff --git a/Views/CompositionInputAccessoryView.swift b/Views/CompositionInputAccessoryView.swift index f39b21e..3dba81a 100644 --- a/Views/CompositionInputAccessoryView.swift +++ b/Views/CompositionInputAccessoryView.swift @@ -114,7 +114,6 @@ private extension CompositionInputAccessoryView { stackView.addArrangedSubview(charactersLabel) charactersLabel.font = .preferredFont(forTextStyle: .callout) - stackView.addArrangedSubview(addButton) addButton.setImage( UIImage(