Releases: danielsaidi/SwiftUIKit
0.9.1
This version adds improved support for watchOS, tvOS and macOS.
The bump version process has been improved tp also add linting and a unit test confirmation.
0.9.0
There are now more convenient alert
, sheet
and toast
view modifiers, that take a context instead of a binding and a content.
This version contains more breaking changes for the toast components.
ToastContext
works just likeSheetContext
andAlertContext
.ToastContext
,SheetContext
andAlertContext
share a base class.- There is a new
ToastProvider
that can be used withToastContext
. - The
toast
modifier handles presenting and dismissing the toast. - The
Toast
view has been removed, since it's no longer needed.
You can now use any views with the toast context and modifier, so it should make the toast easier to understand and to use.
0.8.2
This release renames the alert and sheet Presentable
protocols to Provider
.
The old Presentable
protocols are marked as deprecated.
0.8.1
This release fixes invalid iOS platform version build problems and adds a Color+Random
extension.
0.8.0
This release:
- adds support for macOS, and disables a bunch of features that require UIKit.
- adjusts the
Toast
so that it fits better with the alert and sheet contexts. - adds a new
UIViewWrapper
that simplifies wrappingUIKit
views.
0.7.0
This release adds:
- A
DismissableView
view protocol that simplifies dismissing views programatically. - A
KeyboardAvoiding
modifier and view extension. - A
MultilineTextView
that wraps aUITextView
.
0.6.0
This release adds:
- An
AlertContext
that simplifies working with alerts. - A
SheetContext
that simplifies working with modal sheets. - A
QrCodeGenerator
and aStandardQrCodeGenerator
implementation.
0.5.0
This release adds:
- An
ImagePicker
that can be used to present aUIImagePickerController
. - An
FilePicker
that can be used to present aUIDocumentPickerViewController
. - An
ShareSheet
that can be used to present aUIActivityViewController
. - An
UserDefaultsPersisted
property wrapper that lets you persist data toUserDefaults
.
0.4.2
This release changes the View
geometry extensions and replaces bindGeometry(to: ...)
with:
bindSafeAreaInsets(to: ...)
bindSize(to: ...)
You can use them like this:
@State private var size: CGSize = .zero
@State private var size: CGSize = .zero
UIColor.red.bindGeometry(to: $height) { $0.size.height }
0.4.1
This release makes the podspec is updated to require Swift 5.2.