SwiftDataTables
SwiftDataTables copied to clipboard
Added parameter for right offset for the searchBar from main view
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
}

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