Releases: danielsaidi/SwiftUIKit
Releases · danielsaidi/SwiftUIKit
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.
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.