All notable changes to this project will be documented in this file. ToastUI adheres to Semantic Versioning.
4.0.xReleases - 4.0.0
2.0.xReleases - 2.0.0
1.3.0Releases - 1.3.0 | 1.3.1 | 1.3.21.2.xReleases - 1.2.0 | 1.2.11.1.xReleases - 1.1.0 | 1.1.11.0.xReleases - 1.0.0 | 1.0.1 | 1.0.2
Released on 2024-08-10.
- Minimum required version for Swift is 5.7.
- Support for visionOS. Minimum required version for visionOS is 1.0.
- Refactor the core implementation.
- Toasts now dismiss immediately, even during transitions.
- Documentation to use new DocC version.
- Remove padding from the background in DefaultToastView.
- Update GitHub actions.
Released on 2022-07-19.
- Remove
fixedSizemodifier fromLabelinDefaultToastView. - Add a new AppIcon.
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
LabelofDefaultToastViewStyleis 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:
IndefiniteProgressToastViewStyleis renamed toIndeterminateProgressToastViewStyle.DefiniteProgressToastViewStyleis renamed toDeterminateProgressToastViewStyle.ErrorToastViewStyleis renamed toFailureToastViewStyle.InfoToastViewStyleis renamed toInformationToastViewStyle.AnyToastViewStyleis marked as private.ToastViewStyleConfigurationproperties are refactored to use a generic type instead ofAnyView.VisualEffectViewandcocoaBlurmodifier are removed. UseblurorbackgroundwithMaterialon 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
sheetmodifier 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.
toastDimmedBackgroundmodifier for enabling or disabling the dimmed background.IconToastViewStylestyle for showing a toast with an icon and a headline text label.
ToastUISampleis 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
Applife cycle. - Use built-in
onChangemodifier and@ScaledMetricproperty wrapper. OnChangeModifierandScaledMetricPropertyhave been removed.- Reorganize the
ToastUISampleproject.
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.
CocoaBlurModifierExampleinToastUISamplehas been removed.
Released on 2020-11-14.
ToastViewinitializer withToastViewStyleConfigurationhas been removed.- Multi-line text alignment for
Labelof some built-inToastViewStyles are center-aligned.
dismissAfterhandle forToastViewItemModifier.
- New example of
ToastViewStyleand 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.
ToastUIlogo failed to load on CocoaPods.
Released on 2020-10-09.
cocoaBlurmodifier addsVisualEffectViewusingbackgroundmodifier instead of usingZStack.- Default
UIBlurEffectStylefor blurred background ofToastViewis.prominentfor both iOS and tvOS.
- New logo for
ToastUI. - Support for custom background in
ToastView.
ToastViewPreferenceKeyhas been removed. Presenting toast is now handled by usingonChangemodifier.- Utilize Swift 5.3 functionalities.
- Documentation and README.
- Incorrect
keyWindowis used in callbacks when there are multiple foreground active scenes. ToastViewPreferenceKeytried 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
UIViewPropertyAnimatorinVisualEffectView.
Released on 2020-08-16.
- Rename
VisualEffectBlurtoVisualEffectView.
- 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.