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
448 stars 69 forks source link

searchbar #35

Closed PhoenixLeeSin closed 5 years ago

PhoenixLeeSin commented 5 years ago

I get an bug.. I write this this code

    lazy var dataTable:SwiftDataTable = {
        var options = DataTableConfiguration()
        options.shouldContentWidthScaleToFillFrame = false
        options.defaultOrdering = DataTableColumnOrder(index: 1, order: .ascending)
        options.shouldShowFooter = false
        options.shouldShowSearchSection = false
        let t = SwiftDataTable(data: [], headerTitles: headers, options: options)
        t.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        return t
    }()

but the searchbar is not hidden ...

pavankataria commented 5 years ago

Which version of Swift are you using? Which version of the package you're using? Could you follow the issue template please so that I know what your setup looks like?

pavankataria commented 5 years ago

This is tied to another issue related to configuration options not working when using a specific initialiser.

Conversation continued on: #34

pavankataria commented 5 years ago

Quick update @350541732 : this has been fixed, please download the latest version! https://github.com/pavankataria/SwiftDataTables/releases/tag/0.8.0