Skip to content

Commit

Permalink
added dismiss gesture
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjoeljo committed Jun 8, 2024
1 parent 5e8363e commit ae5c6d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/SwiftToast/ToastViewModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public struct ToastViewModifier: ViewModifier {
}
}
}
.onTapGesture {
isPresented = false
}
}
case .bottom:
return content
Expand All @@ -47,6 +50,9 @@ public struct ToastViewModifier: ViewModifier {
}
}
}
.onTapGesture {
isPresented = false
}
}
}
}
Expand Down

0 comments on commit ae5c6d9

Please sign in to comment.