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

Added parameter for right offset for the searchBar from main view #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

palla89
Copy link

@palla89 palla89 commented Nov 29, 2019

Hi, I needed to add two buttons near the UISearchBar and I couldn't do it without modifying the project's code.

I added an optional CGFloat to specify, similarly to the searchView's height, the empty space from the right of the containing view, as you can see here:

func rightOffsetForSearchView(in dataTable: SwiftDataTable) -> CGFloat {
        return 300
    }

searchbar-offset

@pavankataria
Copy link
Owner

This is awesome. This is a great opportunity to add a left and right view and you can add whatever you want inside it.

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

Successfully merging this pull request may close these issues.

2 participants