[英]How to add buttons to NowPlayingView of Apple Watch using SwiftUI
The NowPlayingView
is a structure. NowPlayingView
是一个结构。 We can use it like:我们可以像这样使用它:
NowPlayingView()
According to Apple's documentation根据苹果的文档
Don't add any other elements to the view.
不要在视图中添加任何其他元素。
We, developer can not add anything to the view.我们,开发人员不能向视图添加任何内容。
But the Apple Music and Podcast's NowPlayingView
are different.但是 Apple Music 和 Podcast 的
NowPlayingView
不同。
Apple Music NowPlayingView
: Apple Music
NowPlayingView
:
Podcast NowPlayingView
:播客
NowPlayingView
:
So I want to know if there any chance we can customize the NowPlayingView
.所以我想知道我们是否有机会自定义
NowPlayingView
。
According to Apple's Engineer, developers can not change anything on NowPlayingView.根据 Apple 工程师的说法,开发人员无法更改 NowPlayingView 上的任何内容。 Additionally, the bottom-right menu button is neither not available to developers.
此外,开发人员也不能使用右下角的菜单按钮。
Reference: Can not modify NowPlayingView .参考:不能修改 NowPlayingView 。 Can not use menu button
不能使用菜单按钮
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.