From f57930e03a8372be98ce50b23eca2c2f46a4bb2d Mon Sep 17 00:00:00 2001
From: lpw <812862340@qq.com>
Date: Thu, 11 Sep 2025 16:57:34 +0800
Subject: [PATCH] 提交版本 4.7.0
---
frameworks/Toast.framework/Headers/UIView+Toast.h | 54 +++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 47 insertions(+), 7 deletions(-)
diff --git a/frameworks/Toast.framework/Headers/UIView+Toast.h b/frameworks/Toast.framework/Headers/UIView+Toast.h
old mode 100755
new mode 100644
index f518b13..c0e2154
--- a/frameworks/Toast.framework/Headers/UIView+Toast.h
+++ b/frameworks/Toast.framework/Headers/UIView+Toast.h
@@ -2,7 +2,7 @@
// UIView+Toast.h
// Toast
//
-// Copyright (c) 2011-2015 Charles Scalesse.
+// Copyright (c) 2011-2024 Charles Scalesse.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
@@ -121,6 +121,46 @@
title:(NSString *)title
image:(UIImage *)image
style:(CSToastStyle *)style;
+
+/**
+ Hides the active toast. If there are multiple toasts active in a view, this method
+ hides the oldest toast (the first of the toasts to have been presented).
+
+ @see `hideAllToasts` to remove all active toasts from a view.
+
+ @warning This method has no effect on activity toasts. Use `hideToastActivity` to
+ hide activity toasts.
+ */
+- (void)hideToast;
+
+/**
+ Hides an active toast.
+
+ @param toast The active toast view to dismiss. Any toast that is currently being displayed
+ on the screen is considered active.
+
+ @warning this does not clear a toast view that is currently waiting in the queue.
+ */
+- (void)hideToast:(UIView *)toast;
+
+/**
+ Hides all active toast views and clears the queue.
+ */
+- (void)hideAllToasts;
+
+/**
+ Hides all active toast views, with options to hide activity and clear the queue.
+
+ @param includeActivity If `true`, toast activity will also be hidden. Default is `false`.
+ @param clearQueue If `true`, removes all toast views from the queue. Default is `true`.
+ */
+- (void)hideAllToasts:(BOOL)includeActivity clearQueue:(BOOL)clearQueue;
+
+/**
+ Removes all toast views from the queue. This has no effect on toast views that are
+ active. Use `hideAllToasts` to hide the active toasts views and clear the queue.
+ */
+- (void)clearToastQueue;
/**
Creates and displays a new toast activity indicator view at a specified position.
@@ -323,7 +363,7 @@
with with a nil style. By default, this is set to `CSToastStyle`'s default
style.
- @param sharedStyle
+ @param sharedStyle the shared style
*/
+ (void)setSharedStyle:(CSToastStyle *)sharedStyle;
@@ -338,7 +378,7 @@
/**
Enables or disables tap to dismiss on toast views. Default is `YES`.
- @param allowTapToDismiss
+ @param tapToDismissEnabled YES or NO
*/
+ (void)setTapToDismissEnabled:(BOOL)tapToDismissEnabled;
@@ -346,7 +386,7 @@
Returns `YES` if tap to dismiss is enabled, otherwise `NO`.
Default is `YES`.
- @return BOOL
+ @return BOOL YES or NO
*/
+ (BOOL)isTapToDismissEnabled;
@@ -355,15 +395,15 @@
toast views will appear one after the other. When `NO`, multiple Toast
views will appear at the same time (potentially overlapping depending
on their positions). This has no effect on the toast activity view,
- which operates independently of normal toast views. Default is `YES`.
+ which operates independently of normal toast views. Default is `NO`.
- @param queueEnabled
+ @param queueEnabled YES or NO
*/
+ (void)setQueueEnabled:(BOOL)queueEnabled;
/**
Returns `YES` if the queue is enabled, otherwise `NO`.
- Default is `YES`.
+ Default is `NO`.
@return BOOL
*/
--
Gitblit v1.8.0