All notable changes to this project will be documented in this file. ToastUI
adheres to Semantic Versioning.
3.0.x
Releases - 3.0.0
2.0.x
Releases - 2.0.0
1.3.0
Releases - 1.3.0 | 1.3.1 | 1.3.21.2.x
Releases - 1.2.0 | 1.2.11.1.x
Releases - 1.1.0 | 1.1.11.0.x
Releases - 1.0.0 | 1.0.1 | 1.0.2
Released on 2022-04-11.
- Minimum required version for Swift is 5.5.
- Visual changes:
- ToastUI shows a dimmed background when presenting a toast instead of a blurred background. This replicates the behavior of a normal
UIAlertController
. - Multi-line text alignment for
Label
ofDefaultToastViewStyle
is center-aligned.
- ToastUI shows a dimmed background when presenting a toast instead of a blurred background. This replicates the behavior of a normal
- API changes:
IndefiniteProgressToastViewStyle
is renamed toIndeterminateProgressToastViewStyle
.DefiniteProgressToastViewStyle
is renamed toDeterminateProgressToastViewStyle
.ErrorToastViewStyle
is renamed toFailureToastViewStyle
.InfoToastViewStyle
is renamed toInformationToastViewStyle
.AnyToastViewStyle
is marked as private.ToastViewStyleConfiguration
properties are refactored to use a generic type instead ofAnyView
.VisualEffectView
andcocoaBlur
modifier are removed. Useblur
orbackground
withMaterial
on iOS 15.0+ modifiers if possible.
- Toast presentation and dismissal mechanisms are redesigned:
- On iOS and tvOS, toast is presented in a separate window instead of the view controller where it is called.
- On macOS, toast is presented in the same window where it is called instead of a separate sheet.
- On watchOS, toast is presented using the built-in
sheet
modifier due to the limitation of WatchKit APIs. - The new mechanism should be more robust against failures and warns the user appropriately if a failure occurs.
- DocC replaces Jazzy as the new tool for generating documentation.
- Support for CocoaPods dependency manager is removed. Use Swift Package Manager instead.
- Default git branch is renamed to
main
.
- Support for watchOS. Minimum required version for watchOS is 7.0
- Static property/function for all built-in styles to leverage the new static member lookup functionality.
toastDimmedBackground
modifier for enabling or disabling the dimmed background.IconToastViewStyle
style for showing a toast with an icon and a headline text label.
ToastUISample
is reorganized and include new examples.- GitHub actions are streamlined and updated (#25).
- ToastUI fails to present the toast when there is a presented view controller (#21 and #24).
- Compiler warning for missing the metatype in
EnvironmentValues.toastViewStyle
(#26).
Released on 2021-01-20.
- Minimum required version for iOS and tvOS is 14.0.
- Support for macOS. Minimum required version for macOS is 11.0.
- Use the new SwiftUI
App
life cycle. - Use built-in
onChange
modifier and@ScaledMetric
property wrapper. OnChangeModifier
andScaledMetricProperty
have been removed.- Reorganize the
ToastUISample
project.
Released on 2021-01-13.
- Minor changes to GitHub actions.
- Make access control level to be more concise.
Released on 2020-11-15.
- Minor changes to GitHub actions.
- Minor code reformatting.
CocoaBlurModifierExample
inToastUISample
has been removed.
Released on 2020-11-14.
ToastView
initializer withToastViewStyleConfiguration
has been removed.- Multi-line text alignment for
Label
of some built-inToastViewStyle
s are center-aligned.
dismissAfter
handle forToastViewItemModifier
.
- New example of
ToastViewStyle
and minor refactoring onToastUISample
. - GitHub actions for pushing to CocoaPods trunk and minor changes to GitHub actions.
Released on 2020-10-09.
- Minor changes to GitHub actions.
ToastUI
logo failed to load on CocoaPods.
Released on 2020-10-09.
cocoaBlur
modifier addsVisualEffectView
usingbackground
modifier instead of usingZStack
.- Default
UIBlurEffectStyle
for blurred background ofToastView
is.prominent
for both iOS and tvOS.
- New logo for
ToastUI
. - Support for custom background in
ToastView
.
ToastViewPreferenceKey
has been removed. Presenting toast is now handled by usingonChange
modifier.- Utilize Swift 5.3 functionalities.
- Documentation and README.
- Incorrect
keyWindow
is used in callbacks when there are multiple foreground active scenes. ToastViewPreferenceKey
tried to update multiple times per frame is thrown in some cases.
Released on 2020-10-05.
- Minor code formatting and SwiftLint rules.
- Use Xcode 12 explicitly on GitHub virtual environment.
Released on 2020-10-05.
- Minimum required version for Swift is 5.3.
- SwiftLint to enforce Swift conventions.
- Minor code formatting, GitHub actions and filename changes.
- Remove redundant unit tests.
- Memory leak due to improper asynchronous usage of
UIViewPropertyAnimator
inVisualEffectView
.
Released on 2020-08-16.
- Rename
VisualEffectBlur
toVisualEffectView
.
- GitHub actions for building package and documentation.
- Documentation and README.
- Typos and formatting in ToastUISample.
- Exception occurred when property animator is not properly released (#6).
Released on 2020-08-13.
- GitHub issue and pull request templates.
- Content view is not properly laid out when boolean binding is triggered in
onAppear
(#2).
Released on 2020-08-04.
- Initial release of
ToastUI
.