Skip to content

Commit

Permalink
Merge pull request #30 from sanzaru/29-animation-duration-not-working…
Browse files Browse the repository at this point in the history
…-on-dismiss

Fixed animation for dismiss
  • Loading branch information
sanzaru authored Jul 18, 2023
2 parents 6ec0c90 + 90dfe72 commit df1d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SimpleToast/SimpleToast.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct SimpleToast<SimpleToastContent: View>: ViewModifier {

/// Dismiss the toast and reset all nessasary parameters
private func dismiss() {
withAnimation {
withAnimation(options.animation) {
timer?.invalidate()
timer = nil
showToast = false
Expand Down

0 comments on commit df1d86a

Please sign in to comment.