Skip to content

Releases: iZettle/Form

Form v2.0

25 Sep 14:16
Compare
Choose a tag to compare
  • 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, use SegmentBackgroundStyle(…).image().
  • [Removed] EitherRow has been removed. Use Either directly in the future.
  • [Removed] ScrollViewDelegate.willEndDraggingWithVelocity. Use ScrollViewDelegate.willEndDragging.
  • [Removed] UIScrollView.disableScrollingIfContentFits(). Use UIScrollView.alwaysBounceVertical = false instead.
  • [Removed] TextStyle.kerning. Use UIScreen.letterSpacing.
  • [Removed] UIScreen.thinestLineWidth. Use UIScreen.hairlineWidth.
  • [Removed] UITraitCollection.thinestLineWidth. Use UITraitCollection.hairlineWidth.
  • [Removed] CGFloat.thinestLineWidth. Use CGFloat.hairlineWidth.
  • CollectionKit
    • [Removed] UICollectionView.dequeueSupplentaryView(at:for). Use UICollectionView.dequeueSupplementaryView(forItem:kind:at:).
    • [Renamed] init(table:layout:bag:cellForRow:)init(table:layout:holdIn:cellForRow:)
    • [Renamed] init(table:layout:bag:)init(table:layout:holdIn:)
  • TableKit
    • [Removed] TableKit.viewForEmptyTable. Use TableKit.viewForEmptyTable(fadeDuration:)
    • [Removed] UITableView.dequeueCell(forItem:style:reuseIdentifier). Use UITableView.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)

Form v1.10.5

09 Sep 14:07
ff82cfd
Compare
Choose a tag to compare
  • 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

15 Aug 15:03
b208df2
Compare
Choose a tag to compare
  • Bugfix: Fix table section header/footer height calculation on iOS 10

Form v1.10.2

12 Aug 12:31
35981f1
Compare
Choose a tag to compare
  • [Bug fix] Remove wrong scrollview top pinning constant on iOS 11 causing a gap for pinned views in navigation controller

Form v1.10.1

25 Jul 11:00
bfbea4e
Compare
Choose a tag to compare
  • 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

25 Jul 10:59
178eac3
Compare
Choose a tag to compare
  • TableKit and CollectionKit 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 it bag.hold(kit).
  • TableKit's and CollectionKit's initializers taking a bag parameter have been deprecated. Instead use the new initializers introduced above.

Form v1.9.1

16 May 10:08
534f3f2
Compare
Choose a tag to compare
  • 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

16 Apr 11:04
9ff2a9f
Compare
Choose a tag to compare
  • 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

04 Apr 12:16
Compare
Choose a tag to compare
  • Migrate to Swift 5

Form v1.7.1

20 Mar 15:30
bb82c11
Compare
Choose a tag to compare
  • Bugfix: Fix UILabel styling bug when a styled label's text is set to nil and then updating its value does nothing.