Releases: danielsaidi/SwiftUIKit
Releases · danielsaidi/SwiftUIKit
0.7.0
This release adds:
- A
DismissableViewview protocol that simplifies dismissing views programatically. - A
KeyboardAvoidingmodifier and view extension. - A
MultilineTextViewthat wraps aUITextView.
0.6.0
This release adds:
- An
AlertContextthat simplifies working with alerts. - A
SheetContextthat simplifies working with modal sheets. - A
QrCodeGeneratorand aStandardQrCodeGeneratorimplementation.
0.5.0
This release adds:
- An
ImagePickerthat can be used to present aUIImagePickerController. - An
FilePickerthat can be used to present aUIDocumentPickerViewController. - An
ShareSheetthat can be used to present aUIActivityViewController. - An
UserDefaultsPersistedproperty 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 anyCGFloatgeometry 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:
ToastContextis an observable object can be used to manage a view's toast.ToastStyleis a new struct that contains all available styles for a toast.
This release makes some small api changes:
- The
SwipeGestureinitializer has been made public. Toastnow usesToastStyleinstead of separate style properties.- The
Toastextensions now require you to specify a background. - The text-based
Toastextension automatically centers the text.
0.2.0
This release adds new style structs:
CornerRadiusStylestyle can be used to specify corner radii.FontStylestyle can be used to specify custom fonts.ShadowStylestyle 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.