Skip to content

Commit

Permalink
Improve Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fatbobman committed Mar 18, 2022
1 parent ff0e99a commit 35f2b4b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
Binary file added Image/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Image/background.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Image/gesture.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ public protocol ContainerViewConfigurationProtocol {
Some versions of operating systems (iOS 14, watchOS) do not support blur mode. If you want to use blur in these versions, you can wrap other blur codes through customView.

*See the project demo code for details*

![background](Image/background.gif)

* backgroundTransitionStyle

Expand All @@ -279,6 +281,8 @@ public protocol ContainerViewConfigurationProtocol {
Under tvOS, only long press are supported

*See the project demo code for details*

![gesture](Image/gesture.gif)

* transition

Expand Down Expand Up @@ -347,6 +351,8 @@ The transition animation can be forced to cancel when `animated` is set to false

This is useful when dealing with scenarios such as Deep Link.

![animation](Image/animation.gif)

### Use outside of SwiftUI views

If you want to call the container manager outside of a SwiftUI view, you can call the ContainerManager singleton directly:
Expand Down
6 changes: 6 additions & 0 deletions READMECN.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ public protocol ContainerViewConfigurationProtocol {
部分版本的操作系统(iOS 14,watchOS )不支持 blur 模式,如果想在这些版本中使用 blur,可以通过 customView 来包裹其他的 blur 代码。

*详情参看项目演示代码*

![background](Image/background.gif)

* backgroundTransitionStyle

Expand All @@ -274,6 +276,8 @@ public protocol ContainerViewConfigurationProtocol {
在 tvOS 下,仅长按被支持

*详情参看项目演示代码*

![gesture](Image/gesture.gif)

* transition

Expand Down Expand Up @@ -342,6 +346,8 @@ struct ContentView1: View {

对于处理例如 Deep Link 之类的场景时十分有效。

![animation](Image/animation.gif)

### 在 SwiftUI 视图外使用

如果想在 SwiftUI 视图之外调用容器管理器,可以直接调用 ContainerManager 的单例:
Expand Down

0 comments on commit 35f2b4b

Please sign in to comment.