Post

Replies

Boosts

Views

Created

Resume long lived operation failed with error CKDatabaseOperations must be submitted to a CKDatabase
Hey, there There's a crash on Apple's document example here https://developer.apple.com/documentation/cloudkit/ckoperation And if we replacing self.container.add (modifyOp) with self.database.add (modifyOp)  it seem will not sync data from iCloud any more. More info: https://developer.apple.com/forums/thread/685863
0
0
668
Jun ’22
How to replace topLeading menu bar on NavigationSplitView with TabView
I try to replace the default menu bar item. but this code still shows two button items. import SwiftUI @available(watchOS 10.0, *) struct TabViewPreview<Content: View>: View { let content: Content init(@ViewBuilder content: () -> Content) { self.content = content() } @State private var selection: String? = "preview" var body: some View { NavigationSplitView { List(selection: $selection) { Text("preview").tag("preview") } } detail: { TabView { content } .toolbar(content: { ToolbarItem(placement: .topBarLeading) { Button(action: {}) { Image(systemName: "shared.with.you") } } }) .tabViewStyle(.verticalPage) } } } @available(watchOS 10.0, *) #Preview { TabViewPreview { Text("A") } }
0
0
469
Sep ’23
Resume long lived operation failed with error CKDatabaseOperations must be submitted to a CKDatabase
Hey, there There's a crash on Apple's document example here https://developer.apple.com/documentation/cloudkit/ckoperation And if we replacing self.container.add (modifyOp) with self.database.add (modifyOp)  it seem will not sync data from iCloud any more. More info: https://developer.apple.com/forums/thread/685863
Replies
0
Boosts
0
Views
668
Activity
Jun ’22
How to replace topLeading menu bar on NavigationSplitView with TabView
I try to replace the default menu bar item. but this code still shows two button items. import SwiftUI @available(watchOS 10.0, *) struct TabViewPreview<Content: View>: View { let content: Content init(@ViewBuilder content: () -> Content) { self.content = content() } @State private var selection: String? = "preview" var body: some View { NavigationSplitView { List(selection: $selection) { Text("preview").tag("preview") } } detail: { TabView { content } .toolbar(content: { ToolbarItem(placement: .topBarLeading) { Button(action: {}) { Image(systemName: "shared.with.you") } } }) .tabViewStyle(.verticalPage) } } } @available(watchOS 10.0, *) #Preview { TabViewPreview { Text("A") } }
Replies
0
Boosts
0
Views
469
Activity
Sep ’23
How to clear Complications caches after delete watch app
Hi guys, We have received several reports from our users: after deleting the watch app, the complications still remain. It seems system cache the config and forget to remove after deleting the app. (Our app is useing WidgetKit as complications)
Replies
0
Boosts
0
Views
653
Activity
Sep ’23