Skip to content

Releases: danielsaidi/DeckKit

1.3.0

26 May 09:36
Compare
Choose a tag to compare

This version has breaking changes for the favorite context/service setup, to make favorites easier to use.

Favorite contexts are now created with a service, and shares the type. This however requires that both types are generic.

✨ New features

  • Card is a new view, with a front and back view and flip support.

🗑️ Deprecations

  • Configuration has been converted to an Equatable extension.
  • View deckShuffleAnimation has been converted to an internal modifier.

💥 Breaking Changes

  • The favorite types have cleaned up their generic designed to be easier to use.

1.2.1

23 May 12:11
Compare
Choose a tag to compare

This version makes the library build even without strict concurrency checks enabled.

This makes the library once again build with Xcode 15.2 and earlier.

1.2.0

03 May 21:16
Compare
Choose a tag to compare

This version adds support for strict concurrency checks.

✨ New features

  • DeckViewConfiguration is now applied with a view modifier instead of with the initializer.

💡 Adjustments

  • DeckShuffleAnimation now supports strict concurrency.

🐛 Bug Fixes

  • DeckShuffleAnimation now animates the new cards nicely to the new end state.

1.1.0

06 Mar 22:21
Compare
Choose a tag to compare

This version adds support for visionOS.

This minor update also rolls back the environment changes in 1.0.1.

The configuration is once more init injected and not through the environment. The environment injection will be implemented in a major version instead.

✨ New features

  • DeckView now has a shuffle animation init parameter.
  • DeckViewConfiguration has a new modified function.

💡 Behavior changes

  • DeckItem is now a typalias, not a protocol.

🗑️ Deprecations

  • Deck is no longer needed, you can just use plain arrays instead.
  • DeckContext is no longer needed since Deck is also deprecated.
  • Favoritable is no longer needed, you can just use Identifiable.

💥 Breaking Changes

  • The DeckViewConfiguration environment change has been rolled back.

1.0.1

10 Feb 16:50
Compare
Choose a tag to compare

This patch adds support for visionOS and environment keys.

It also adjustes the default direction of the DeckView, from .up to .down.

✨ New features

  • DeckViewConfiguration.Key is a new environment key.
  • View has a .deckViewConfiguration modifier that you can use to apply a custom view configuration.

💡 Behavior changes

  • DeckViewConfiguration now uses .down as the default direction.

1.0.0

03 Jan 08:19
Compare
Choose a tag to compare

DeckKit now targets iOS 15.0, macOS 11.0, tvOS 15.0 and watchOS 8.0.

💡 New features

  • DeckPageView is a new horizontal page view.

0.8.0

05 Dec 10:09
Compare
Choose a tag to compare

DeckKit now targets Swift 5.9.

🐛 Bug Fixes

  • DeckShuffleAnimation now properly triggers isShuffling.

0.7.1

17 Aug 15:19
Compare
Choose a tag to compare

💡 New features

  • Deck has new move functions.

0.7.0

12 Jun 22:52
Compare
Choose a tag to compare

💡 New features

  • Deck has a new shuffle function.
  • DeckShuffleAnimation is a new animation.
  • DeckView has a new convenience initializer.

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.