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
.