diff --git a/README.md b/README.md index e88cb7f..26e5832 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,12 @@ Other properties: Expending the container out of it's safe area. The default value is `.disable` (do not ignore), `.all` (ignore all safe area) and `.custom` (customize regions and edges) +* queueControlOperator + + Execute the window operation only after the specified time interval has elapsed,default is `none`,that is, not enabled + + It is only applicable to special needs scenarios, such as using OverallContainer instead of Sheet.In a List, clicking each row will pop up a window. In this case, if the user accidentally uses multiple fingers to click, it will open multiple window condition.Enable the debounce function for the container, and the container will only retain one valid operation in a short period of time. Usually just set the duetime to 0.1 seconds( `.debounce(seconds: 0.1)` ) + * Configuration for all other container views (used as defaults for container views) See Configuring Container Views below for details diff --git a/READMECN.md b/READMECN.md index 4292718..fe49836 100644 --- a/READMECN.md +++ b/READMECN.md @@ -194,6 +194,12 @@ struct MyContainerConfiguration:ContainerConfigurationProtocol{ * ignoresSafeArea 忽略安全区域。默认值为 disable (不忽略)、 all (忽略全部安全区域)、custom (自定义 region 和 edge ) + +* queueControlOperator + + 只在指定的时间间隔过去后才执行窗口操作,默认为 `none` , 不启用时间控制操作 + + 只适用于有特殊需求的场景,比如用 OverallContainer 代替 Sheet 。在一个 List 中,点击每一行都会弹出一个窗口。在这种情况下,如果用户不小心用多根手指点击,就会出现同时打开多个窗口的情况。为容器开启 debounce 选项,容器会在短时间内只保留一次有效操作。 通常只需将到期时间设置为 0.1 秒(`.debounce(seconds: 0.1)`) * 其他所有容器视图的配置(用作容器视图的默认值)