Skip to content

Releases: quanshousio/ToastUI

4.0.0

11 Aug 01:16
146e2f5
Compare
Choose a tag to compare

Released on 2024-08-10.

Changed

  • Minimum required version for Swift is 5.7.

Added

  • Support for visionOS. Minimum required version for visionOS is 1.0.

Updated

  • 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.

3.0.1

19 Jul 20:47
1828801
Compare
Choose a tag to compare

Released on 2022-07-19.

Updated

  • Remove fixedSize modifier from Label in DefaultToastView.
  • Add new AppIcon.

3.0.0

11 Apr 17:16
b064788
Compare
Choose a tag to compare

Released on 2022-04-11.

Changed

  • 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 of DefaultToastViewStyle is center-aligned.
  • API changes:
    • IndefiniteProgressToastViewStyle is renamed to IndeterminateProgressToastViewStyle.
    • DefiniteProgressToastViewStyle is renamed to DeterminateProgressToastViewStyle.
    • ErrorToastViewStyle is renamed to FailureToastViewStyle.
    • InfoToastViewStyle is renamed to InformationToastViewStyle.
    • AnyToastViewStyle is marked as private.
    • ToastViewStyleConfiguration properties are refactored to use a generic type instead of AnyView.
    • VisualEffectView and cocoaBlur modifier are removed. Use blur or background with Material 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.

Added

  • 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.

Updated

  • ToastUISample is reorganized and include new examples.
  • GitHub actions are streamlined and updated (#25).

Fixed

  • 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).

2.0.0

20 Jan 02:47
e1fd433
Compare
Choose a tag to compare

Released on 2021-01-20.

Added

  • Support for macOS 11.0.

Updated

  • Use SwiftUI application life cycle.
  • Reorganize the ToastUISample project.
  • Use built-in onChange modifier and @ScaledMetric property.

Removed

  • Support for iOS 13.0 and tvOS 13.0.
  • Custom OnChangeModifier and ScaledMetricProperty.

1.3.2

13 Jan 12:49
6fd9e8f
Compare
Choose a tag to compare

Released on 2021-01-13.

Updated

  • Minor changes to GitHub actions.
  • Make access control level to be more concise.

1.3.1

15 Nov 17:04
61e8f93
Compare
Choose a tag to compare

Released on 2020-11-15.

Updated

  • Minor changes to GitHub actions.
  • Minor code reformatting.

Removed

  • CocoaBlurModifierExample in ToastUISample.

1.3.0

14 Nov 23:45
34eca7a
Compare
Choose a tag to compare

Released on 2020-11-14.

Added

  • dismissAfter handle for ToastViewItemModifier.

Updated

  • New example of ToastViewStyle and minor refactoring on ToastUISample.
  • Multi-line text alignment for label of built-in ToastViewStyle is center by default.
  • GitHub actions for pushing to CocoaPods trunk and minor changes to GitHub actions.

Removed

  • ToastView initializer with ToastViewStyleConfiguration.

1.2.1

09 Oct 06:47
b49a28f
Compare
Choose a tag to compare

Released on 2020-10-09.

Updated

  • Minor changes to GitHub actions.

Fixed

  • ToastUI logo failed to load on CocoaPods.

1.2.0

09 Oct 06:24
2d280a8
Compare
Choose a tag to compare

Released on 2020-10-09.

Added

  • New logo for ToastUI .
  • Support for custom background in ToastView .

Updated

  • ToastViewPreferenceKey has been removed. Presenting toast is now handled by using onChange modifier.
  • cocoaBlur modifier adds VisualEffectView as a background instead of using ZStack .
  • Default UIBlurEffectStyle for blurred background of ToastView is .prominent for both iOS and tvOS.
  • Utilize Swift 5.3 functionalities.
  • Documentation for ToastView and README.

Fixed

  • 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.

1.1.1

06 Oct 02:50
545b0ff
Compare
Choose a tag to compare

Released on 2020-10-05.

Updated

  • Minor code formatting and SwiftLint rules.

Fixed

  • Use Xcode 12 explicitly on GitHub virtual environment.