Releases: danielsaidi/SwiftUIKit
5.0.0
This verison makes SwiftUIKit use Swift 6.
Due to the strict concurrency enforcement, this involves some breaking changes.
If some of the changes made are too strict for you, feel free to open a GitHub issue to discuss it.
π¨ Breaking Changes
- This version renames the
masterbranch tomain. - All previously deprecated code has been removed.
- All static style and configurations are now computed properties.
- Some classes apply
@MainActorto properly handle mutable state. ImageCache.sharedhas been removed.ImageService.defaulthas been removed.KeychainWrapper.sharedhas been removed.URLOpenerhas been removed, since there now are native alternatives.View+Geometryhas been removed.
4.4.0
This version adds a new storage value type and moves the gesture buttons to https://github.com/danielsaidi/GestureButton.
β¨ Features
StorageValueis a new property wrapper for serializing data intoAppStorage.
ποΈ Deprecations
GestureButtonandScrollGestureButtonhas been moved tohttps://github.com/danielsaidi/GestureButton.
4.3.0
This version adds localization support, and makes more types use LocalizedStringKey instead of String.
This version also adds standard button types, which makes it easier to create standard button types.
β¨ New features
Button+Initadds a new button initializer.Button+Standardadds new standard button types.
4.2.2
π Bug fixes
View+Labelnow correctly applies the provided bundle.
4.2.1
π‘ Behavior changes
View.alertnow injects the context as environment object.View.labelnow takes a localized string key instead of a key.View.sheetnow injects the context as environment object.View.fullScreenCovernow injects the context as environment object.
4.2.0
This version refactors many views to take their styles & configs as environment values, instead of injecting them in the initializer.
β¨ New features
CircularProgressBarnow supports customizing animation.FilePickernow supports providing a custom picker config.ImagePickernow supports providing a custom picker config.LinkTexthas new link style options, to define font weight.ListButtonGroupis a new group view for groping many buttons.ListButtonStylehas a new optionalpressedOpacityinit param.ListCardnow supports specifying a custom pressed scale animation.String+Replacehas a new options-based replace extension shorthand.
π‘ Behavior changes
Color.standardListBackgroundhas been renamed tolistBackground.FormInlineActionButtonStylehas been replaced byListButtonGroup.FormTexthas been renamed toListActionRow, and is now style-based.ListActionRownow supports aListActioninstead of a trailing view.
ποΈ Deprecations
DismissableViewhas been deprecated due to native SwiftUI support.FormRowTitlehas been deprecated due to now being used internally.PresentationDetentshas been deprecated due to native SwiftUI support.
4.1.5
This version makes the list header not use a section, to avoid disclosure groups.
4.1.4
This version fixes a bug in the image list header extension.
4.1.3
This version adds a few additional utilities.
β¨ New features
ListHeaderhas a new image-specific modifier.View+Labelmakes it easy to convert any view to a label.View+macOShas a newopenAppSettings()view extension.
π‘ Behavior changes
ListHeadernow applies a platform-specific bottom padding.
4.1.1
This version makes the ListBadgeIcon available on macOS.
β¨ New features
ListBadgeIconis now available on macOS.ListBadgeIconhas a newappStorebadge.ListBadgeIconiconColor is nil by default and adaptive to the badge color.