Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope bar layout issue #7

Open
ashish-naik opened this issue Jul 1, 2018 · 0 comments
Open

Scope bar layout issue #7

ashish-naik opened this issue Jul 1, 2018 · 0 comments

Comments

@ashish-naik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant