Post

Replies

Boosts

Views

Activity

A big problem with Xcode13.3 and swiftui
After I updated xcode to 13.3 version, almost all mt spm project warns. SourcePackages/checkouts/SwiftUI-MediaPicker/SwiftUI.UIViewControllerRepresentable:7:24: Static method '_makeView(view:inputs:)' isolated to global actor 'MainActor' can not satisfy corresponding requirement from protocol 'View' It's pretty bad, because I don' wanna any warnings.
3
0
2.2k
Feb ’22
Remove items in Fileprovider
After I receive an apns request. func enumerateItems(for observer: NSFileProviderEnumerationObserver, startingAt page: NSFileProviderPage) will be called. And I start fetch new items from my server. If new items have been deleted something that old items which already showed to the user contains. These have been deleted items will not disappear on the screen. func enumerateItems(for observer: NSFileProviderEnumerationObserver, startingAt page: NSFileProviderPage) {         task = Task {             do {                 let flat = MediaItemReference.flat(enumeratedItemIdentifier == .rootContainer ? root : enumeratedItemIdentifier.rawValue)                 guard let uuid = UUID(uuidString: flat.identifier) else {                     observer.finishEnumeratingWithError(FileProviderError.other)                     return                 }                 let fileContents = try await WebApi.getSubForFileProvider(uuid)                 let refs = fileContents.map { fileContent -> MediaItemReference in                     InfoPool.shared.set(fileContent.uuid.uuidString, value: fileContent)                     return MediaItemReference(                         identifier: fileContent.uuid.uuidString,                         isDirectory: fileContent.isDictionary,                         filename: fileContent.name,                         father: uuid.uuidString)                 }                 let items = refs.map(FileProviderItem.init(reference:))                 observer.didEnumerate(items)                 observer.finishEnumerating(upTo: nil)             } catch {                 print("=>", error.localizedDescription)                 observer.finishEnumeratingWithError(error)             }         }     }
1
0
1.5k
Feb ’22
Can I use the airpods
Your Swift Playgrounds app project must be fully functioning, and be written in and run on Swift Playgrounds 4.0.2 on iPadOS 15.4 or Xcode 13.3 on macOS 12.3. If it runs on iPadOS, it must be optimized to display properly on all models of iPad Pro. You may incorporate the use of Apple Pencil. My app need to be used with airpods. But apple doesn’t mention it whether it is acceptable or not.
1
0
579
Apr ’22
Use Live Text in SwiftUI
Menu {                 Button(action: {                     // TODO: support live text                 }) {                     Label("Live Text", systemImage: "camera.viewfinder")                 }             } label: {                 Text("Hi")             } How can I present the live text view in swiftUI
1
0
1.4k
Jun ’23
Can i use PhotogrammetrySession on linux
Can i use PhotogrammetrySession on the centos7
Replies
0
Boosts
0
Views
904
Activity
Aug ’21
NSFileProviderWorkingSetContainerItemIdentifier
What is the difference between NSFileProviderWorkingSetContainerItemIdentifier and NSFileProviderRootContainerItemIdentifier. And what NSFileProviderWorkingSetContainerItemIdentifier is? What time will files app create NSFileProviderWorkingSetContainerItemIdentifier?
Replies
0
Boosts
0
Views
659
Activity
Feb ’22
A big problem with Xcode13.3 and swiftui
After I updated xcode to 13.3 version, almost all mt spm project warns. SourcePackages/checkouts/SwiftUI-MediaPicker/SwiftUI.UIViewControllerRepresentable:7:24: Static method '_makeView(view:inputs:)' isolated to global actor 'MainActor' can not satisfy corresponding requirement from protocol 'View' It's pretty bad, because I don' wanna any warnings.
Replies
3
Boosts
0
Views
2.2k
Activity
Feb ’22
Remove items in Fileprovider
After I receive an apns request. func enumerateItems(for observer: NSFileProviderEnumerationObserver, startingAt page: NSFileProviderPage) will be called. And I start fetch new items from my server. If new items have been deleted something that old items which already showed to the user contains. These have been deleted items will not disappear on the screen. func enumerateItems(for observer: NSFileProviderEnumerationObserver, startingAt page: NSFileProviderPage) {         task = Task {             do {                 let flat = MediaItemReference.flat(enumeratedItemIdentifier == .rootContainer ? root : enumeratedItemIdentifier.rawValue)                 guard let uuid = UUID(uuidString: flat.identifier) else {                     observer.finishEnumeratingWithError(FileProviderError.other)                     return                 }                 let fileContents = try await WebApi.getSubForFileProvider(uuid)                 let refs = fileContents.map { fileContent -> MediaItemReference in                     InfoPool.shared.set(fileContent.uuid.uuidString, value: fileContent)                     return MediaItemReference(                         identifier: fileContent.uuid.uuidString,                         isDirectory: fileContent.isDictionary,                         filename: fileContent.name,                         father: uuid.uuidString)                 }                 let items = refs.map(FileProviderItem.init(reference:))                 observer.didEnumerate(items)                 observer.finishEnumerating(upTo: nil)             } catch {                 print("=>", error.localizedDescription)                 observer.finishEnumeratingWithError(error)             }         }     }
Replies
1
Boosts
0
Views
1.5k
Activity
Feb ’22
Other equipment
Can Swift Challenge apps require other devices to be displayed? For example, pen, keyboard, etc.
Replies
4
Boosts
0
Views
885
Activity
Apr ’22
Do all iPad pros have faceid
My app needs the tech of the Faceid. But as far as I know, there is some over dated iPad pro. They don’t support faceid. Does this kind of ipads in ‘all iPad pro’
Replies
2
Boosts
0
Views
1.3k
Activity
Apr ’22
Can I use the airpods
Your Swift Playgrounds app project must be fully functioning, and be written in and run on Swift Playgrounds 4.0.2 on iPadOS 15.4 or Xcode 13.3 on macOS 12.3. If it runs on iPadOS, it must be optimized to display properly on all models of iPad Pro. You may incorporate the use of Apple Pencil. My app need to be used with airpods. But apple doesn’t mention it whether it is acceptable or not.
Replies
1
Boosts
0
Views
579
Activity
Apr ’22
Will app run on the iPad
if I choose Xcode 13.2.1 on macOS 12.2.1., will my app still run on a real iPad or just a stimulator
Replies
1
Boosts
0
Views
712
Activity
Apr ’22
Use Live Text in SwiftUI
Menu {                 Button(action: {                     // TODO: support live text                 }) {                     Label("Live Text", systemImage: "camera.viewfinder")                 }             } label: {                 Text("Hi")             } How can I present the live text view in swiftUI
Replies
1
Boosts
0
Views
1.4k
Activity
Jun ’23