Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.0.0 #28

Merged
merged 8 commits into from
Apr 11, 2022
Merged

Release 3.0.0 #28

merged 8 commits into from
Apr 11, 2022

Conversation

quanshousio
Copy link
Owner

@quanshousio quanshousio commented Apr 11, 2022

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

@quanshousio quanshousio merged commit b064788 into main Apr 11, 2022
@quanshousio quanshousio deleted the 3.0.0 branch April 11, 2022 17:16
@quanshousio quanshousio added the enhancement New feature or request label Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant