diff --git a/Image/animation.gif b/Image/animation.gif new file mode 100644 index 0000000..df84ed2 Binary files /dev/null and b/Image/animation.gif differ diff --git a/Image/background.gif b/Image/background.gif new file mode 100644 index 0000000..ccd4682 Binary files /dev/null and b/Image/background.gif differ diff --git a/Image/gesture.gif b/Image/gesture.gif new file mode 100644 index 0000000..c463360 Binary files /dev/null and b/Image/gesture.gif differ diff --git a/README.md b/README.md index 8d593fe..d61943e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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: diff --git a/READMECN.md b/READMECN.md index 4e6e044..04fd6ae 100644 --- a/READMECN.md +++ b/READMECN.md @@ -252,6 +252,8 @@ public protocol ContainerViewConfigurationProtocol { 部分版本的操作系统(iOS 14,watchOS )不支持 blur 模式,如果想在这些版本中使用 blur,可以通过 customView 来包裹其他的 blur 代码。 *详情参看项目演示代码* + +![background](Image/background.gif) * backgroundTransitionStyle @@ -274,6 +276,8 @@ public protocol ContainerViewConfigurationProtocol { 在 tvOS 下,仅长按被支持 *详情参看项目演示代码* + +![gesture](Image/gesture.gif) * transition @@ -342,6 +346,8 @@ struct ContentView1: View { 对于处理例如 Deep Link 之类的场景时十分有效。 +![animation](Image/animation.gif) + ### 在 SwiftUI 视图外使用 如果想在 SwiftUI 视图之外调用容器管理器,可以直接调用 ContainerManager 的单例: