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
titleView
totitleLabel
anddetailView
todetailLabel
. This makes it more clear exactly what these views actually are.
Improvements and Fixes
-
Fix a bug where constraints for the
UIEmptyStateView
would 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.detailLabel
would not resize and fit the screen correctly on iOS versions lower than 11.0.detailLabel
now calculates it's width properly and constraints are added accordingly. -
Change
emptyStateViewAnimatesEverytime
fromtrue
tofalse
. This seems like a more reasonable default value as it animations can get annoying when repeated multiple times without change.