pavankataria / SwiftDataTables

A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
MIT License
447 stars 69 forks source link

search bar doesn't disappear #15

Closed amirmahdi2545 closed 6 years ago

amirmahdi2545 commented 6 years ago

i used this configuration to make the searchbar disappear but no difference public struct DataTableConfiguration { public var defaultOrdering: DataTableColumnOrder? = nil public var shouldShowSearchSection: Bool = true public init(){ } }

pavankataria commented 6 years ago

You need to set the variable to false. So initialise a ‘DataTableConfiguration’ and set the ‘shouldShowSearchSection’ property to ‘false’ and pass this configuration object into the data tables class. Run the demo project which also shows this done as an example of a search being hidden. You can also use the delegate method and return false to achieve the same.

pavankataria commented 6 years ago

Did you get that fixed then? If there’s nothing else I’ll close this issue then.

pavankataria commented 6 years ago

I'm going to close this now as this functionality is supported and there hasn't been a response. If you need any more help just post on here and I'll open this issue up again.

amirmahdi2545 commented 6 years ago

thank you for your help and your library is amazing

pavankataria commented 6 years ago

Cheers! If you need any further assistance just post on here.

Also features and ideas are welcomed too.