Releases: danielsaidi/SwiftUIKit
0.9.6
After comments, the View+Screenshot takeScreenshot function has been renamed to snapshot. The origin parameter has .zero as default value.
The View+Keyboard keyboard avoiding logic has been removed, since SwiftUI now supports it natively.
0.9.5
This version adds a UrlOpener, as well as new extensions:
EdgeInsets+Edgesimplifies getting the inset for a certain edge.View+Screenshotcan be used to snapshot any SwiftUI view.View+Visiblehas conditional extensions to hide or show a view.
0.9.4
This version adds a UrlOpener, as well as new extensions:
EdgeInsets+Edgesimplifies getting the inset for a certain edge.View+Screenshotcan be used to snapshot any SwiftUI view.View+Visiblehas conditional extensions to hide or show a view.
0.9.3
This version adds a DocumentCamera view, which can be used to scan documents with the device camera.
0.9.2
This version adds a dismiss function to PresentationContext.
This means that these contexts get access to this function:
AlertContextSheetContextToastContext
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.
ToastContextworks just likeSheetContextandAlertContext.ToastContext,SheetContextandAlertContextshare a base class.- There is a new
ToastProviderthat can be used withToastContext. - The
toastmodifier handles presenting and dismissing the toast. - The
Toastview 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
Toastso that it fits better with the alert and sheet contexts. - adds a new
UIViewWrapperthat simplifies wrappingUIKitviews.