Releases: pavankataria/SwiftDataTables
Releases · pavankataria/SwiftDataTables
Implements DataSource
Data source, here we are!!
Simply implement the DataTableDataSource protocol and then call the reload method on the data table, and all the views will be initialised for you 👍
Implements filtering with search bar! 🔎
🔎 🔎 Implements a Search Bar for data filtering! 🔎 🔎
Summary
A search bar is automatically added to all data tables to allow the user to filter through the loaded data set without changing any code.
Technicals
- Swift Data Tables will automatically add a search bar to the data grid.
- The search will find occurrences in every single data item, efficiently.
- A row will be returned in the filtering process if even one of it's data items contain the needle.
- The default filtering algorithm uses a contains matching expression.
Trims project and min iOS deployment set to version 8.0
Trims project and min iOS deployment set to version 8.0
Improved sorting algorithm - Automatically Infer the type of the data passed in!
Summary:
- Improves the sorting algorithm for columns by scanning the data passed into the
SwiftDataTable
class and automatically infer the type of the data. - Changes Cell Row Representable to use A new
DataTableValueType
that moves away from the[[String]]
row construction.
Technical:
- original initialiser has been moved to a convenience one. users can still inject [[String]] into the SwiftDataTable class:
[[String]]
. - Adds a new DataTableValueType.
- Adds a string representation method for
DataTableValueType
. - Refactors Data Cell and Data CellViewModel to incorporate DataCellTypeValue 724a6f0
- Adds a comparable implementation for DataTableValueType 29616b2 & c12ea98
- Adds optional initialiser to DataTableValueType to automatically infer the right value type. f3d9d2c
Improves the type detection algorithm for DataTableValueType enum b0254e8
Implements Default Order Feature
- Allows a default ordering feature
- Configuration file allows you to specify options.
- Adds default ordering options to configuration file allowing you to specify column index and order type.
Adds scale to fill content view
+ Adds feature which resizes columns with weighted distribution across entire width of data table frame if the content is smaller
+ Creates new delegate method allowing the user to decide if they want the content view to automatically scale to fill to the data table frame width
+ Refactors the way content width is calculated
+ Fixes bug where Data Grid would crash if the content width was smaller than the width of the frame
+ Trims row columns to the header count specified