Skip to content

Commit

Permalink
update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Mar 16, 2023
1 parent 7c30af2 commit 0024d65
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions READMECN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`

* 其他所有容器视图的配置(用作容器视图的默认值)

Expand Down

0 comments on commit 0024d65

Please sign in to comment.