3.3.0
This release adds new support for Codable
and AppStorage
.
This release also adds new list functionality and text editor styling.
From this version, the demo application has been removed. Instead of the demo application, you can use the internal previews directly.
✨ New features
Array
has new extensions that make it possible to use withCodable
andAppStorage
.Dictionary
has new extensions that make it possible to use withCodable
andAppStorage
.ImageRepresentable
has new resizing tools.ListBadgeIcon
is a new view that mimics the color badge icons in System Settings.ListCard
is a new view that can be used to create cards for a list or grid.ListDragHandle
is a new view to mimic the native iOS list drag handle.ListSectionTitle
is a new view that mimics a grouped iOS section title.ListShelfSection
is a new view that can be used to create horizontally scrolling shelves in vertically scrolling lists.ProcessInfo
has a new static preview property.TextEditorStyle
lets you style aTextEditor
like aTextField
.Image+Symbol
is a newImage
initializer that serves as a shorthand for.init(systemName:)
.Image+ListBadgeIcon
is a newImage
modifier that can be used to convert an image to a color badged icon.
✨ Behavior changes
Persisted
has been deprecated due toAppStorageCodable
.ViewShadowStyle
now allows not specifying a shadow color.ViewShadowStyle.badge
has been redesigned to look more like a sticker.
🐛 Bug fixes
- The undimmed presentation detents move some code to after layout to improve behavior.
🗑 Deprecations
UndimmedPresentationDetent
is renamed toPresentationDetentReference
.- The
.presentationDetents(undimmed:largestUndimmed:selection:)
modifier is deprecated and replaced by.presentationDetents(:largestUndimmed:selection:)
.