Releases: iZettle/Form
Releases · iZettle/Form
Form v2.0
- Added: Support for Swift Package Manager
- Added: New initializers for RowsSelection that works with the latest version of Presentation framework. The old one is deprecated.
- Change: Bump the minimum required version of Presentation to 1.9.0
- Change: Removed deprecated functions, symbols etc.
- Change: Deprecate registerViewForSupplementaryElement and add a new one that works with UICollectionView headers and footers
Upgrade migration guide
- [Removed]
UIImage.init(border:bottomSeparator:topSeparator:background:position:)
is removed, useSegmentBackgroundStyle(…).image()
. - [Removed]
EitherRow
has been removed. UseEither
directly in the future. - [Removed]
ScrollViewDelegate.willEndDraggingWithVelocity
. UseScrollViewDelegate.willEndDragging
. - [Removed]
UIScrollView.disableScrollingIfContentFits()
. UseUIScrollView.alwaysBounceVertical = false
instead. - [Removed]
TextStyle.kerning
. UseUIScreen.letterSpacing
. - [Removed]
UIScreen.thinestLineWidth
. UseUIScreen.hairlineWidth
. - [Removed]
UITraitCollection.thinestLineWidth
. UseUITraitCollection.hairlineWidth
. - [Removed]
CGFloat.thinestLineWidth
. UseCGFloat.hairlineWidth
. CollectionKit
- [Removed]
UICollectionView.dequeueSupplentaryView(at:for)
. UseUICollectionView.dequeueSupplementaryView(forItem:kind:at:)
. - [Renamed]
init(table:layout:bag:cellForRow:)
→init(table:layout:holdIn:cellForRow:)
- [Renamed]
init(table:layout:bag:)
→init(table:layout:holdIn:)
- [Removed]
TableKit
- [Removed]
TableKit.viewForEmptyTable
. UseTableKit.viewForEmptyTable(fadeDuration:)
- [Removed]
UITableView.dequeueCell(forItem:style:reuseIdentifier)
. UseUITableView.dequeueCell(forItem:style)
- [Renamed]
init(table:style:view:bag:headerForSection:footerForSection:cellForRow:)
→init(table:style:view:holdIn:headerForSection:footerForSection:cellForRow:)
- [Renamed]
init(table:style:view:bag:headerForSection:footerForSection:)
→init(table:style:view:holdIn:headerForSection:footerForSection:)
- [Renamed]
init(table:style:view:bag:footerForSection:)
→init(table:style:view:holdIn:footerForSection:)
- [Renamed]
init(table:style:view:bag)
→init(table:style:view:holdIn)
- [Removed]
Form v1.10.5
- Bugfix: Fixed scroll-to-top not working correctly.
- Addition: Add new initializers for TableKit and CollectionKit that have an explicit
holdIn
parameter to keep subscriptions. - Change: Change the deprecation warning of TableKit and CollectionKit initializers to point to the new ones
Form v1.10.3
- Bugfix: Fix table section header/footer height calculation on iOS 10
Form v1.10.2
- [Bug fix] Remove wrong scrollview top pinning constant on iOS 11 causing a gap for pinned views in navigation controller
Form v1.10.1
- Bugfix: Apply view styling based on initial trait collection to prevent bugs where styling is not applied if the initial trait collection did not change
Form v1.10.0
TableKit
andCollectionKit
do no longer require the passing of a bag to their initializers. This means that the life-time of a kit instance is no longer kept alive by a provided bag. For most usages that should not change the behaviour but if the kit is prematurely deallocted you can always explicity hold on to itbag.hold(kit)
.TableKit
's andCollectionKit
's initializers taking a bag parameter have been deprecated. Instead use the new initializers introduced above.
Form v1.9.1
- Bugfix: fix pinning a view to a scrollview on iOS 9 and 10 (issue #104)
- Layout fix: properly layout multiline row view titles
Form v1.9.0
- Bugfix: Make sure to remove the old empty state view from a table after setting a new empty state view #99.
- Add minimum scale factor to TextStyle. When a custom value is set that can also affect other controls using TextStyle, e.g UIButton.
Form v1.8.0
- Migrate to Swift 5
Form v1.7.1
- Bugfix: Fix UILabel styling bug when a styled label's text is set to nil and then updating its value does nothing.