watchos - SwiftUI TabView on WatchOS breaks when a ScrollView is nested inside. SwiftUI bug or coding error?
问题描述
So I've noticed that TabView loses horizontal swiping between tabs when any type of ScrollView is nested inside. This includes ScrollView and List. Wondering if this is a bug I can just wait for a fix or if I'm making a mistake in my code. Any insight is appreciated.
This code works as expected:
TabView {
Text("Tab 1")
Text("Tab 2")
}
This code will freeze on "Tab 1" and horizontal swiping between tabs doesn't work:
TabView {
ScrollView {
Text("Tab 1")
}
Text("Tab 2")
}
解决方案
推荐阅读
- spring - 使用“in”运算符的 Spring JPA 查询问题
- mule4 - Mule 4 : For Each : org.mule.runtime.api.metadata.TypedValue 不能转换为 java.util.Map
- .net - 连接大型机时不支持超过 2147483647 的 SSH.NET 数据
- google-apps-script - GoogleScript getSheetbyName 错误 null - 我该如何解决?
- python - 用熊猫打开一个压缩的 excel 文件
- c++ - 如何设置 Visual Studio 输出目录?
- angular - Angular 服务通过相同的接口/抽象类调用服务 => 循环依赖
- rest - Q Microsoft Graph API for Onedrive 自上个月以来一直返回 504,试图获取某些驱动器的驱动器增量
- tensorflow - TF.Keras 如何用 TFRECORDS 数据集拟合模型?
- python - Column selection for very large tab-delimited text files