Skip to content

2.0.0

Compare
Choose a tag to compare
@danielsaidi danielsaidi released this 23 Sep 06:42

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 replace SimpleMultiPicker in due time.
  • Persisted now lets you inject a custom store.
  • Picker is a new, generic single item picker. It will probably replace SimplePicker in due time.
  • PickerListItem is a new protocol that can be used in Picker lists.
  • PickerSection is a new, generic struct that can be used to divide a Picker and MultiPicker into sections.
  • ShadowStyle has a new formActionButton type.
  • ShadowStyle has zero defaults for x and y.
  • SystemColor has a bunch of new colors.
  • SystemColor is now Codable and Equatable.
  • Text+Markdown is a new view extension that provides a new Text(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 static shadowStyle property.

💥 Breaking Changes

  • All deprecated parts of the library have been removed.
  • MenuListItemIcon has been renamed to MenuListIcon.
  • SystemColor no longer auto-implements SimplePickerValue.
  • UserDefaultsPersisted has been renamed to Persisted.