在 SwiftUI 中隐藏 Picker 的选定值
I have a Picker within a Form but I want to show the selected value of the Picker only in another TextField within this Form and not in the Picker.
Is there a possibility to hide the selected value in a Picker?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法使用
Picker
执行此操作,但可以使用NavigationLink
作为解决方法:You can't do this with a
Picker
but you could useNavigationLink
as a work-around: