Fix search-button on empty-view (IOS-157)

Wasn't tappable on iPhone
This commit is contained in:
Nathan Mattes 2023-05-23 16:34:16 +02:00
parent 71d8cfb485
commit 8b7e491590
1 changed files with 2 additions and 2 deletions

View File

@ -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))