swiftui - TabView 内的 NavigationView:“更多...”溢出项中的 NavigationBar 重复
问题描述
When I use a NavigationView inside a TabView, when the tab ends up in the "More..." overflow item, SwiftUI adds another NavigationView around and the navigation bar title is not shown correctly as of iOS 14.4. 这似乎是 SwiftUI (FB9078166) 中的一个错误。是否有解决方法来获得正确的行为?
这是一个重现此问题的示例项目:https ://github.com/ralfebert/SwiftUITabItemOverflowBug 。当您通过“更多...”进入“垃圾箱”时,导航视图标题“垃圾箱”显示在实际导航栏下方:
解决方案
推荐阅读
- java - mac m1 无法写入核心转储。核心转储已被禁用。要启用核心转储,请在再次启动 Java 之前尝试“ulimit -c unlimited”
- vba - 在 Word 文档中查找字符串的出现 - 如果在表格中找到字符串,则会出现问题
- networking - 仅在发生故障时如何在k8s中重定向tcp流量
- python - 为每个人锁定频道 discord.py
- unity3d - Blenderexport FBX 到 Unity 的问题
- python - 从目录中读取 id
- reactjs - 上传从html转换为s3的图像文件
- asp.net-core - 在针对 IdentityServer 4 进行身份验证后添加用户声明
- angular - Angular 材料可以在同一个组件中注入 MatBottomSheetData 或 MatDialogData 吗?
- node.js - 如何将数据从html发送到mongodb