forked from zelo72/mastodon-ios
fix: search controller cannot trigger become first responder issue
This commit is contained in:
parent
757578e97e
commit
e15e373f3d
|
@ -307,8 +307,8 @@ extension RootSplitViewController: WizardViewControllerDelegate {
|
|||
let cell = contentSplitViewController.sidebarViewController.collectionView.cellForItem(at: indexPath) as? SidebarListCollectionViewCell,
|
||||
let contentView = cell._contentView,
|
||||
let frame = sourceViewFrameInTargetView(
|
||||
sourceView: contentView.avatarButton,
|
||||
targetView: wizardView
|
||||
sourceView: contentView.avatarButton,
|
||||
targetView: wizardView
|
||||
)
|
||||
else {
|
||||
assertionFailure()
|
||||
|
|
|
@ -245,7 +245,9 @@ extension SearchDetailViewController {
|
|||
searchBar.becomeFirstResponder()
|
||||
} else {
|
||||
searchController.isActive = true
|
||||
searchController.searchBar.becomeFirstResponder()
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.33) {
|
||||
self.searchController.searchBar.becomeFirstResponder()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue