标签: watchos-8

iOS 15 和 WatchOS 8 上奇怪的快捷方式问题

我有一个应用程序,允许用户为其创建快捷方式。它在我的 iPhone 和 Apple Watch 上运行良好,直到我将设备升级到 iOS 15 和 WatchOS 8.0

\n

即使我说“允许”,它每次仍然询问我“允许 *** 与(空)共享数据”

\n

我用谷歌搜索,但只找到一篇有类似问题的帖子\n https://forums.macrumors.com/threads/shortcuts-to-web-open-in-chrome-bug.2312693/

\n

我自己做了测试,并在我的 iPhone 上创建了一个新的 Twitter \xe2\x80\x9c发生了什么\xe2\x80\x9d 快捷方式,它总是问我 \xe2\x80\x9cAll 查看\xe2\x80\x99s 发生了什么\xe2\ x80\x9d 与 (null)\xe2\x80\x9d 共享数据,就像 Apple Watch (WatchOS 8 ) 上的手表应用程序发生的情况一样\n我也在 Apple Watch 上使用了相同的 Twitter 快捷方式,并且第一次询问同样的问题,然后它显示 \xe2\x80\x9cCan\xe2\x80\x99t 第二次将数据发送到 (null)\xe2\x80\x9d 。

\n

我猜这是一个新的系统错误,但我不确定。\n有人知道如何解决它吗?谢谢你!

\n

在此输入图像描述

\n

在此输入图像描述

\n

automation sirishortcuts ios15 watchos-8

12
推荐指数
1
解决办法
5909
查看次数

SwiftUI:NavigationLink 在 WatchOS 8.1RC 的 Tabview 中立即弹出

我发现 watchOS 8.1RC 中存在从 TabView 触发的 NavigationLink 的回归。马上就被驳回了。

它在 watchOS 8.0 或模拟器 (watchOS 8.0) 中运行。你知道解决方法吗?谢谢

示例代码:

import SwiftUI

@main
struct TestNavigationApp: App {
    var body: some Scene {
        WindowGroup {
            NavigationView {
                ContentView()
            }
        }
    }
}

struct ContentView: View {
    var body: some View {
        List {
            NavigationLink(destination: ContentView1()) {
                Text("To TabView")
            }
        }
        
    }
}

struct ContentView1: View {
    var body: some View {
        TabView {
            NavigationView {
                NavigationLink(destination: ContentView2()) {
                    Text("To ContentView2")
                }
            }
            VStack {
                Text("Screen2") …
Run Code Online (Sandbox Code Playgroud)

apple-watch swiftui swiftui-navigationlink swiftui-tabview watchos-8

10
推荐指数
1
解决办法
971
查看次数

SwiftUI:当 List 和 ForEach 嵌入 TabView 时,WatchOS 8.1 中的 NavigationView 错误

下面的代码在 WatchOS 7 和 8.0 中运行良好,但现在在 8.1 中,点击该行将导航到目的地,但随后立即导航回根视图。

我提交了反馈#FB9727188,并包含以下内容来演示该问题。

struct ContentView: View {

 @State var tabIndex:Int = 0

    var body: some View {
            TabView(selection: $tabIndex) {
            ListView()
                .tabItem { Group{
                    Text("List")
                }}.tag(0)
                .padding(.bottom, 1.0)
             Text("Second View")
                .tabItem { Group{
                    Text("Second")
                }}.tag(1)
            .padding(.bottom, 1.0)
             Text("Third View")
                .tabItem { Group{
                    Text("ThirdView")
                }}.tag(2)
           
        
            
        }
    }
}


struct ListView: View {
    var body: some View {
         List {
            ForEach((1...10).reversed(), id: \.self) {_ in
                NavigationLink(destination: Text("test")) {
                    Text("Tap Me but we'll just be back here") …
Run Code Online (Sandbox Code Playgroud)

apple-watch swiftui swiftui-navigationlink watchos-8

6
推荐指数
1
解决办法
927
查看次数