SwiftDataTables icon indicating copy to clipboard operation
SwiftDataTables copied to clipboard

Added parameter for right offset for the searchBar from main view

Open palla89 opened this issue 6 years ago • 1 comments

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

palla89 avatar Nov 29 '19 11:11 palla89

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

pavankataria avatar Dec 04 '19 22:12 pavankataria