Skip to content

Releases: danielsaidi/DeckKit

0.6.0

06 Feb 07:55
Compare
Choose a tag to compare

💡 New features

This version adds an additional DeckView initializer so that you don't have to specify the itemViewBuilder parameter name.

💥 Breaking Changes

  • All previously deprecated code has been removed.
  • DeckView itemViewBuilder has been renamed to itemView.

0.5.0

29 Nov 13:37
Compare
Choose a tag to compare

💡 Behavior changes

  • DeckView action parameters are now optional.
  • DeckView card builder no longer requires AnyView.

💥 Breaking Changes

  • BasicCard no longer applies a fixed width to its content.
  • HorizontalDeck no longer contains a scroll view.

🗑️ Deprecations

  • BasicCard has been deprecated and will be removed in 0.6.
  • HorizontalDeck has been deprecated and will be removed in 0.6.
  • StackedDeck has been renamed to DeckView.
  • StackedDeck has a new itemViewBuilder initializer.
  • StackedDeckConfiguration has been renamed to DeckViewConfiguration.
  • StackedDeckConfiguration has a new itemDisplayCount initializer.

0.4.0

28 Nov 15:10
Compare
Choose a tag to compare

✨ New features

  • StackedDeckConfiguration is a new StackedDeck config.
  • StackedDeckConfiguration has a .standard value that is automatically used.

💡 Behavior changes

  • StackedDeck no longer changes the card offset value within an animation.

💥 Breaking Changes

  • StackedDeck now takes a configuration as init parameter instead of separate values.

0.3.0

29 Apr 13:57
Compare
Choose a tag to compare

✨ New features

  • Deck now lets you specify id.

💥 Breaking Changes

  • BasicItem has been renamed to BasicCard.Item.
  • CardItem has been renamed to DeckItem.

0.2.0

04 Oct 19:55
Compare
Choose a tag to compare

The deck init params for StackedDeck and HorizontalDeck has been changed to a binding.

This gives you better control over the deck, removes UI glitches and helped me remove a bunch of state for visible cards in StackDeck, which means that deck modifications now instantly trigger UI changes.

I have added a shuffle button to the demo to demonstrate how much better the stacked deck performs.

The StackedDeck has been improved in more ways:

  • I have changed the order of how the vertical offset and scale effect are applied, which fixes a UI glitch.
  • I have added swipeLeft/Right/Up/Down actions, which let you trigger actions depending on how a card is swiped off the top.

The DeckContext class is still in the library, but is not used by the library itself.

0.1.0

19 Sep 08:45
Compare
Choose a tag to compare

This version is the first public release of DeckKit.

It contains components that are used in apps that have been pushed to production, which is why I decided to release it as a first minor.