This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
Releases: luispadron/UIEmptyState
Releases · luispadron/UIEmptyState
Version 1.0.2
Versin 1.0.2
- Fix issue with
UIEmptyStateView
and it's subviews not being accessible.
Version 1.0.1
Version 1.0.1
- Fix access modifier in default implementation of
emptyStateViewWillHide(view:)
Version 1.0.0
Version 1.0.0 - Stable Release
- Add Swift version check to allow support for Swift 3 --> Swift 4.
- Refactor public API to make it less verbose and more Swift-like.
- All methods which had the format
methodName(forSomething:)
have been refactored to simplymethodName(for:)
. - Due to this renaming, if using Swift 3.2 or lower, you may get an error
about a@objc
method having already been declared, this is due to Swift 3 inferring an@objc
attribute when it is not in fact@objc
. If using Xcode 9 +, you will need to setSwift 3 @objc Inference
in theOptimization Level
of this projectsBuild Settings
toOff
. I know this is a hassle, but I want to keep the API clean and stable, no point in changing it at a later date when Swift 4 is fully released and breaking more code.
- All methods which had the format
- Add two new delegate methods to the
UIEmptyStateDelegate
emptyStateViewWillShow(view: UIView)
which is called before the view is shown, given you time to do any additional work.emptyStateViewWillHide(view: UIView)
which is called right before the view will be hidden from the screen.
- Fix some broken documentation/updated docs
After this release the API should not change that often, thus I wont be breaking your code as much 😅
Thanks for using UIEmptyState
Version 0.8.3
Version 0.8.3
- Fix bug where data source was not reverting
edgesForExtendedLayout
to default values after it was done presenting the view
Version 0.8.2
Version 0.8.2
- Fix issue with constraints not being set properly for Empty state view
Version 0.8.1
Version 0.8.1
- Make sure
.swift-version
is included in pod to fix warnings in Xcode 9
Version 0.8.0
Version 0.8.0
- Updated for Swift 4 and Xcode 9
- Now uses
safeAreaLayoutGuide
to adjust centering of empty state view, if on iOS 11 whenshouldAdjustToFitBars
returnstrue
. - Updated project to recommended settings in Xcode 9, set language to Swift 4 and
@objc inference
todefault
.
Version 0.7.0
Version 0.7.0
- Update constraints for labels so that they do not extend past the edges of the view
- Add private extension to help calculate the the height of labels
Version 0.6.0
Version 0.6.0
- Fix bug where title for UIEmptyState was not being updated when reloading
- Made sure to assign all datasource properties when creating, and updating the view
Version 0.5.0
Version 0.5.0
- Refactored API methods for
UIEmptyStateDataSource
into computed properties to be more "swift-like" - Add new delegate method to get notified when the view has been shown, here you can bring subviews to front that may have been covered by the UIEmptyState
- Add new property to determine whether the viewcontroller using UIEmptyState should adjust it's frame to take into account navigation bars/tab bars
- Refactored a lot of code and comments
Breaking API Changes in 0.5.0
Basically, everything... Sorry!
Due to the change from methods to properties, the way you interact with the data source has changed. Please read the documentation. Most methods have been convereted into computed properties. This will be the design going forward unless it's not possible, i.e requires parameters or would be better in a method.