DeckKit tries to honor semantic versioning:
- Deprecations can happen at any time.
- Deprecations should only be removed in
major
updates. - Breaking changes should not occur in
minor
andpatch
updates. - Breaking changes can occur in
minor
andpatch
updates, if needed.
These release notes only cover the current major version.
This version makes the SDK use Swift 6.
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.
Card
is a new view, with a front and back view and flip support.
Configuration
has been converted to anEquatable
extension.View
deckShuffleAnimation
has been converted to an internal modifier.
- The favorite types have cleaned up their generic designed to be easier to use.
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.
This version adds support for strict concurrency checks.
DeckViewConfiguration
is now applied with a view modifier instead of with the initializer.
DeckShuffleAnimation
now supports strict concurrency.
DeckShuffleAnimation
now animates the new cards nicely to the new end state.
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.
DeckView
now has a shuffle animation init parameter.DeckViewConfiguration
has a newmodified
function.
DeckItem
is now a typalias, not aprotocol
.
Deck
is no longer needed, you can just use plain arrays instead.DeckContext
is no longer needed sinceDeck
is also deprecated.Favoritable
is no longer needed, you can just useIdentifiable
.
- The
DeckViewConfiguration
environment change has been rolled back.
This patch adds support for visionOS and environment keys.
It also adjustes the default direction of the DeckView
, from .up
to .down
.
DeckViewConfiguration.Key
is a new environment key.View
has a.deckViewConfiguration
modifier that you can use to apply a custom view configuration.
DeckViewConfiguration
now uses.down
as the default direction.
DeckKit now targets iOS 15.0, macOS 11.0, tvOS 15.0 and watchOS 8.0.
DeckPageView
is a new horizontal page view.