# iOS动画debug(SwiftUI)

* 抖音：<https://v.douyin.com/rq22PjH/>
* B站：<https://www.bilibili.com/video/BV1Vm4y197Ln/>

大家能看出来这里有什么 bug 吗

我再来一遍

看到了吗

我把这个调慢一点大家看哈

看到了吗这有一条线他从上面下来的

那这条线是干什么用的呢

这条线是其实是这里边的一个指示条

那这条线的动画呢就在这加 的

我们把它注视掉再来一遍

好慢一点

大概没有问题

那我们不能不要这个动画

因为他这样滚动的时候

也就没有动画了

后来我在准备demo的时候

就同样这行代码

在我这个demo里就报了警告

在原来那个项目就没有报警告

后来我发现其实这个项目的版本问题

他支持原来那个项目支持是14

然后这个demo我选的时候最新系统

所以这块在

这么写代码的时候他就会报一个警告

大家看

出来了他说这个方法被弃用 了

在 iOS 15上

他说用这个或者这个来代替

这有一个 value 的属性

那value是什么

后来我上网又研究了一下

这个就是告诉这个后台的引擎

哪个属性发生变化了

就这个属性发生变化之后

他才会用动画去过度这个效果

我们再来试一遍

大家看 没问题

我再把动画放慢

没问题

然后呢我们再

切换

也没问题

这样就解决了

那他这个支不支持低版本的呢

也支持我们把它这么改完之后呢

我们把它再改成14

再来一遍

嘀咕：报什么错了

clean一下

好再来一遍

大家看！也是没问题的

我把动画调慢

没有问题

这样就解决了


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/ios-dong-hua-debugswiftui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
