Releases: danielsaidi/SwiftUIKit
2.3.1
This release adjust the ListToggle
.
💡 Behavior changes
ListToggle
now applies.labelsHidden()
to the toggle, to make it take up less space.
2.1.0
This release adds a brand new "list item" concept that replaces the previous "menu list" one.
NOTE
This release was revised, with some list view names shortened and a few more list view items added. This is the official 2.1, but it is also released as a 2.1.1 to avoid dependency cache problems.
✨ New features
-
EdgeInsets
has a newinit(all:)
initializer. -
EdgeInsets
has a newinit(horizontal:,vertical:)
initializer. -
Label
has a newinit(String, Image)
initializer. -
View+Frame
has a newframe(square:)
view extension. -
View+DynamicType
has a newdisableDynamicType()
view extension. -
ListItem
is a new view that can be used to make items in a list get the same style and behavior. -
ListButton
is a new view that wraps its content in aListItem
that is embedded in aButton
. -
ListButtonLink
is a new view that wraps its content in aListButton
and appends a trailingListDisclosureIndicator
. -
ListDisclosureIndicator
is a new view that imitates and iOS navigation link arrow. -
ListNavigationLink
is a new view that wraps its content in aListItem
that is embedded in aNavigationLink
. -
ListSelectItem
is a new view that wraps its content in aListItem
and applies a checkmark if the item is selected. -
ListText
is a new view that wraps aText
view in aListItem
. -
ListToggle
is a new view that wraps its content in aListItem
and appends a trailingToggle
.
🗑 Deprecations
- The
MenuList
namespace is deprecated and replaced with the newList
namespace.
2.0.0
This version requires Xcode 13 and later, since it refers to the latest api:s.
Parts of the library that have native corresponding parts in newer versions of SwiftUI, like SearchBar
. They will be around until the library targets the versions of SwiftUI where they were introduced.
✨ New features
Color+Codable
is a new extension that makes Color codable.Color+Random
now lets you randomize the color opacity as well.EnvironmentValues+SafeAreaInsets
lets you read the safe are insets of the key window.FormActionButton
can now be provided with a custom style.FormActionButtonStyle
can now be configured with a custom style.MenuListIcon
has a new emoji-based initializer.MenuListItem
now lets you use any custom content builder.MenuListItemStack
is a new view that lets you reuse the spacing and tap behavior.MenuListSection
is a new view for menu list sections.MenuListSlider
is a new view for menu list sliders.MenuListSubtitle
is a new view for menu list subtitles.MenuListToggle
is a new view for menu list toggles.MultilineText
is a new text view that can be used when a multiline text is cut off with ...MultiPicker
is a new, generic multi item picker. It will probably replaceSimpleMultiPicker
in due time.Persisted
now lets you inject a custom store.Picker
is a new, generic single item picker. It will probably replaceSimplePicker
in due time.PickerListItem
is a new protocol that can be used inPicker
lists.PickerSection
is a new, generic struct that can be used to divide aPicker
andMultiPicker
into sections.ShadowStyle
has a newformActionButton
type.ShadowStyle
has zero defaults forx
andy
.SystemColor
has a bunch of new colors.SystemColor
is nowCodable
andEquatable
.Text+Markdown
is a new view extension that provides a newText(markdown:)
initializer.UrlSharing
is a new protocol that any view can implement to easily be able to share urls.View+Autosave
is a new view extension that provides a customizable autosave view modifier.
💡 Behavior changes
FormActionButtonStyle
no longer applies a primary text color.FormActionButtonStyle
no longer applies a shadow by default. You can define one with the staticshadowStyle
property.
💥 Breaking Changes
- All deprecated parts of the library have been removed.
MenuListItemIcon
has been renamed toMenuListIcon
.SystemColor
no longer auto-implementsSimplePickerValue
.UserDefaultsPersisted
has been renamed toPersisted
.
1.7.2
✨ New features
FlipView
has a newisFlipped
binding, so that it can be read from outside as well.FormText
now supports iOS 13.FormText
has a newtrailingView
property.- There is a new
UIImage+Rotated
extension.
💥 Breaking Changes
ScanCodeGenerator
functionsof
parameter name is not omitted.
1.7.1
💡 Behavior changes
This release renames ActionButton
and ActionButtonStyle
to FormActionButton
and FormActionButtonStyle
, since the name "action button" is too general.
🐛 Bug fixes
- This release fixes build errors on tvOS and macOS.
🗑 Deprecations
ActionButton
andActionButtonStyle
has been deprecated.
1.7.0
✨ New features
FormText
is a new view to present text inList
forms.FormTextEditor
is a new view to present text editors inList
forms.FormTextField
is a new view to present text fields inList
forms.ActionButton
is a new button that resembles the action button in e.g. Contacts.ActionButtonStyle
is a new button style that can be used for action buttons.ScanCodeGenerator
is a new protocol for types that can generate scan codes.StandardScanCodeGenerator
is a new, standard implementation ofScanCodeGenerator
.
🗑 Deprecations
QrCodeGenerator
has been deprecated due to the newQrCodeGenerator
.StandardQrCodeGenerator
has been deprecated due to the newStandardQrCodeGenerator
.
1.6.0
✨ New features
FlipView
has a newflipDuration
property.FlipView
is now supported by all platforms.ImageResource
is now supported bywatchOS
andtvOS
as well.MenuListItemIcon
is a new view for menu list items.
🐛 Bug fixes
FlipView
handles flipping and view transitions better than before.ImagePicker
now completes with failure if original image is missing.
🗑 Deprecations
FlippableView
has been renamed toFlipView
.
💥 Breaking Changes
ImagePicker
's result now uses a rawUIImage
instead of anImage
.
1.5.1
This version makes the library build under Xcode beta 4, by marking some features as unavailable for iOS application extensions.
This affects the following files:
- View+Keyboard
- SearchBar
- UrlOpener
These parts of the library will no longer be available in app extensions.
1.5.0
This version adds image utils that help writing multiplatform apps.
✨ New features
ImageResource
is a new typealias for e.g.NSImage
andUIImage
.Image
has a newimageResource
-based initializer.NSImage
has some new extensions, likecgImage
andjpegData
.
1.4.0
✨ New features
FolderMonitor
can be used to monitor changes to a folder on the file system.FolderObservable
can be used to observe changes to a folder on the file system.ProcessInfo
has a newisSwiftUIPreview
extension that can be used to tell if code is running within a preview or not.SystemColor
is a new enum that makes it easy to use and pick built-in systemColor
values.TagTextField
is a text field that automatically slugifies text as you type.