Releases: danielsaidi/SwiftUIKit
Releases · danielsaidi/SwiftUIKit
0.4.0
This release adds a new geometry View
extension:
bindGeometry(to: ...)
lets you bind anyCGFloat
geometry value for a view.
The extension injects a GeometryReader
and provides values to the provided binding.
0.3.0
This release adds some new toast features:
ToastContext
is an observable object can be used to manage a view's toast.ToastStyle
is a new struct that contains all available styles for a toast.
This release makes some small api changes:
- The
SwipeGesture
initializer has been made public. Toast
now usesToastStyle
instead of separate style properties.- The
Toast
extensions now require you to specify a background. - The text-based
Toast
extension automatically centers the text.
0.2.0
This release adds new style structs:
CornerRadiusStyle
style can be used to specify corner radii.FontStyle
style can be used to specify custom fonts.ShadowStyle
style can be used to specify drop shadow styles.
These view modifiers simplifies using these styles:
cornerRadius(_ style:)
can be used to apply aCornerRadiusStyle
.font(_ style: FontStyle)
can be used to apply aFontStyle
.font(name:, style:, weight:)
can also be used to apply custom fonts.shadow(_ style:)
can be used to apply aShadowStyle
.
The release also adds new view extensions:
blur(...)
simplifies using the system blur styles that are specified in this library.border(content:,width:,cornerRadius:)
can be used to apply borders with a certain content (e.g. Color.red), width and corner radius.
0.1.0
This is the very first release of SwiftUIKit. It contains a bunch of features, which are described in the readme.