-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
@ihomam I am using your code. Thank you.
I show scope bar using searchBarTextDidBeginEditing().
`func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
if #available(iOS 11.0, *) {
} else {
self.searchBar!.showsCancelButton = true
self.searchBar!.showsScopeBar = true
self.searchBar!.sizeToFit()
}
self.collectionView?.reloadData()
}`
However, scope bar overlaps the collection view's first row.
How do i solve this and is there a simpler way to add search bar with scope bar for iOS 10 when using Xcode 9.3 and Swift 4?
Adding it in UItableView is so simple!!
Appreciate if you could help.
Metadata
Metadata
Assignees
Labels
No labels