From 8b7e4915900cc7a80b164c8d09dac0a873792dfb Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Tue, 23 May 2023 16:34:16 +0200 Subject: [PATCH] Fix search-button on empty-view (IOS-157) Wasn't tappable on iPhone --- Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift index 442c5e351..77ff7408c 100644 --- a/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift +++ b/Mastodon/Scene/HomeTimeline/HomeTimelineViewController.swift @@ -371,6 +371,7 @@ extension HomeTimelineViewController { bottomPaddingView.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ topPaddingView.heightAnchor.constraint(equalTo: bottomPaddingView.heightAnchor, multiplier: 0.8), + manuallySearchButton.heightAnchor.constraint(greaterThanOrEqualToConstant: 20), ]) let buttonContainerStackView = UIStackView() @@ -385,6 +386,7 @@ extension HomeTimelineViewController { } } +//MARK: - Actions extension HomeTimelineViewController { @objc private func findPeopleButtonPressed(_ sender: Any?) { @@ -398,13 +400,11 @@ extension HomeTimelineViewController { } @objc private func manuallySearchButtonPressed(_ sender: UIButton) { - os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function) let searchDetailViewModel = SearchDetailViewModel(authContext: viewModel.authContext) _ = coordinator.present(scene: .searchDetail(viewModel: searchDetailViewModel), from: self, transition: .modal(animated: true, completion: nil)) } @objc private func settingBarButtonItemPressed(_ sender: UIBarButtonItem) { - os_log(.info, log: .debug, "%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function) guard let setting = context.settingService.currentSetting.value else { return } let settingsViewModel = SettingsViewModel(context: context, authContext: viewModel.authContext, setting: setting) _ = coordinator.present(scene: .settings(viewModel: settingsViewModel), from: self, transition: .modal(animated: true, completion: nil))