Releases: luispadron/UIEmptyState
Version 4.0.1
Version 4.0.1
- Fix memory leak caused by retain cycle
Version 4.0.0
- Update to Swift 4.2
Version 3.2.0
Version 3.2.0
- Fix bug where the empty view was not centered properly on
nonUITableViewControllerorUICollectionViewControllertypes. - Fix bug where empty view did not account for table header view height
thus was not truly centered in the visible area of the table view
Version 3.1.2
- Build with Swift 4.1.2
Version 3.1.1
- Build with latest Swift 4.1
Version 3.1.0
Version 3.1.0
- Added new
emptyStateImageViewTintColor, which allows applying a tint color to the defaultUIEmptyStateView's image view. - Added new
emptyStateViewCenterYOffset, which allows offsetting the vertical center position for the empty state view. - Example project now uses local
UIEmptyStatepod, to allow for local development and easier testing.
Version 3.0.0
Version 3.0.0
- Fixed bug where
UIEmptyStateDataSource.emptyStateViewcomputed property and the theUIViewController+UIEmptyState.emptyStateViewproperties conflicted thus not allowing creation of custom view. - Custom views now work as intended, you can return a
UIViewsubclass in theUIEmptyStateDataSource.emptyStateViewcomputed property. Make sure to set any needed constraints, etc.
Breaking API changes:
Remove emptyStateView from view controller extension. This was never intended to be accessible outside of the extension. Use the emptyStateView computed property in UIEmptyStateDataSource to create a custom view instead.
Version 2.0.2
Version 2.0.2
Bug fix for retain cycle between delegate, datasource, and the view controller.
Thanks to @piotrzuzel for the fix.
Version 2.0.1
Add shared scheme, fixed thanks to @piotrzuzel.
Version 2.0.0
Version 2.0.0
Breaking API Changes
-
Renamed
reloadEmptyState(for: tableView)toreloadEmptyStateForTableView(_:)andreloadEmptyState(for: collectionView)toreloadEmptyStateForCollectionView(_:). This fixes an issue where error is thrown for duplicate function declaration with Objective-C selector on Swift versions lower than 4.0. -
Renamed the
shouldShowEmptyStateView(for:)datasource method toemptyStateViewShouldShow(for:). This was done to be more consistent with the rest of the API. -
Renamed
titleViewtotitleLabelanddetailViewtodetailLabel. This makes it more clear exactly what these views actually are.
Improvements and Fixes
-
Fix a bug where constraints for the
UIEmptyStateViewwould be added whenever the view appeared thus causing a warning to be thrown by Xcode for duplicate and breaking constraints. Constraints for the view are now only added on initial showing of view. -
Fix bug where
UIEmptyStateView.detailLabelwould not resize and fit the screen correctly on iOS versions lower than 11.0.detailLabelnow calculates it's width properly and constraints are added accordingly. -
Change
emptyStateViewAnimatesEverytimefromtruetofalse. This seems like a more reasonable default value as it animations can get annoying when repeated multiple times without change.