Releases: danielsaidi/SwiftUIKit
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
CircularProgressBar
now supports customizing animation.FilePicker
now supports providing a custom picker config.ImagePicker
now supports providing a custom picker config.LinkText
has new link style options, to define font weight.ListButtonGroup
is a new group view for groping many buttons.ListButtonStyle
has a new optionalpressedOpacity
init param.ListCard
now supports specifying a custom pressed scale animation.String+Replace
has a new options-based replace extension shorthand.
💡 Behavior changes
Color.standardListBackground
has been renamed tolistBackground
.FormInlineActionButtonStyle
has been replaced byListButtonGroup
.FormText
has been renamed toListActionRow
, and is now style-based.ListActionRow
now supports aListAction
instead of a trailing view.
🗑️ Deprecations
DismissableView
has been deprecated due to native SwiftUI support.FormRowTitle
has been deprecated due to now being used internally.PresentationDetents
has 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
ListHeader
has a new image-specific modifier.View+Label
makes it easy to convert any view to a label.View+macOS
has a newopenAppSettings()
view extension.
💡 Behavior changes
ListHeader
now applies a platform-specific bottom padding.
4.1.1
This version makes the ListBadgeIcon
available on macOS.
✨ New features
ListBadgeIcon
is now available on macOS.ListBadgeIcon
has a newappStore
badge.ListBadgeIcon
iconColor is nil by default and adaptive to the badge color.
4.1.0
This version adjusts the ListBadgeIcon
to behave better.
✨ New features
ListBadgeIcon
has new properties and render better on iOS 17.ListBadgeIcon
has new predefined types.
4.0.1
This patch fixes the default FormInlineButtonStyle
background in dark mode.
✨ New features
Color
has a newstandardRowBackground
function.
4.0.0
This major version bumps the deployment targets to iOS 15, tvOS 15, watchOS 8, and macOS 12. This lets us remove a lot of code for older OS versions.
This version also adds everything from SwiftKit
, which is discontinued. I don't want to manage or add two libraries, so merging them seems valid.
This version removes protocols where not needed. This means that it will no longer have a protocol and a standard implementation if not needed.
✨ New features
Bundle+Information
is a new extension with bundle-specific information.BundleFileFinder
is a new file service that can search for files in a bundle.Collections
is a new namespace with collection-related utilities and extensions.Commands
is a new namespace withmacOS
commands.CsvParser
is a new class that can be used to parse CSV files and strings.Date
is a new namespace with date-related extensions and utilities.DeviceIdentifier
is a new class for generating unique device IDs.iCloudDocumentSync
is a new class that can sync iCloud document changes.Keychain
is a new namespace with keychain-related utilities and services.ListAction
is a new enum with quick list action types.MimeType
is a new type that defines various MIME types.Pasteboard
is a multi-platform pasteboard typealias.String
is a new namespace with string-related utilities and extensions.URL+iCloud
adds new iCloud-specific URLs.ValidationRegex
is a struct that defines various regex-based validation expressions.
🐛 Bug fixes
View
disableDynamicType
now applies the provided size category instead of always.medium
.
💥 Breaking Changes
All previously deprecated code has been removed.
ActionToggle
has been removed - just useonChange(of:)
to observe the toggle state instead.DismissableView
now usesDismissAction
instead ofPresentationMode
.EdgeInsets
factory functions have been replaced with proper initializers.FilePicker
now requiresUTType
instead ofString
.FolderMonitor
has been renamed toDirectoryMonitor
.FolderObservable
has been renamed toDirectoryObservable
.FormActionButton
has been replaced with aFormActionButtonStyle
.FormTextButton
has been removed sinceListAction
is so easy to use.FormTextEditor
andFormTextField
has been removed. Use.formRowTitle(...)
instead.ScanCodeGenerator
has been replaced byImage
andImageRepresentable
init extensions.
3.9.0
This release deprecates a bunch of things in preparation for the 4.0 bump.
SwiftUIKit 4.0 will drop support for iOS 13.
✨ New features
MultilineSubmitViewModifier
is a new view modifier to make multiline text fields submit when return is pressed.View
has a newmultilineSubmit(...)
extension.View
has a newonMultilineSubmit(...)
extension.
💡 Behavior changes
ForEachPicker
no longer applies a.plain
button style.ForEachMultiPicker
no longer applies a.plain
button style.SwiftPreviewInspector
now provides a standard implementation.
🗑 Deprecations
MultilineText
has been deprecated.DotAnimation
has been renamed toDotLoadingAnimation
.DotAnimationText
has been renamed toDotLoadingAnimationText
.SearchBar
has been deprecated.SidebarPresenter
has been deprecated.StandardSwiftPreviewInspector
has been deprecated.Text+Markdown
has been deprecated.UIApplication+Windows
has been deprecated.View
height and width modifiers have been deprecated.View+Keyboard
has been deprecated.
3.8.3
✨ New features
FormTextField
has new multiline capabilities.
🗑 Deprecations
FormTextEditor
has been soft deprecated.