Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
2 answers
162 views

I’m migrating a NotificationManager class to Swift 6. This class is a small utility wrapper around NotificationCenterand has a method that lets users register a notification that will triggerunless ...
Bill's user avatar
  • 46k
-2 votes
1 answer
101 views

How do I use UndoManager with MainActor isolated functions? In this simple example I get "Call to main actor-isolated instance method 'undoAction' in a synchronous nonisolated context; this is ...
-1 votes
1 answer
39 views

I am trying to generate an XML document using Swift on Linux. But the following code doesn't compile: let rootElement = XMLElement(name: "feed") rootElement.setAttributesWith(["xmlns&...
0 votes
1 answer
118 views

I'm coding a Mac app in SwiftUI 6.0.3 and Xcode 16. My Mac is up to date with macOS Sequoia 15.3.1. I'm trying to have a menu bar item that updates at an interval with the percentage of the CPU that I ...
user avatar
0 votes
0 answers
209 views

When I try a build, this is the error I see: -- Adding CPU backend variant ggml-cpu: CMake Error at ggml/src/ggml-metal/CMakeLists.txt:1 (find_library): Could not find FOUNDATION_LIBRARY using the ...
0 votes
0 answers
83 views

I have an application that needs to be tested (UI). The application uses different feature configurations, and I'm looking for a convenient way to turn features on/off for proper testing. What are ...
-6 votes
1 answer
189 views

I like being able to do this: print( "\("YYYY") \(454.90008)" ) but I want to do this: print( "\("YYYY") \(String(format: "%.3f", 454.90008))" ) ...
-1 votes
1 answer
97 views

i need 2 digits after the comma consistently but there are certain floats that just wont be formatted correctly? (as seen below) are the tricks around this? code: import Foundation let floatNumber: ...
1 vote
1 answer
112 views

I’ve written SwiftUI code that uses Combine to display CPU usage metrics such as User, System, Nice, and Idle values for each core on the system. The functionality works initially in the sense that ...
-1 votes
1 answer
71 views

import Foundation enum OperationError: Error { case ioError(_ message: String) var localizedDescription: String { switch self { case .ioError(let message): return ...
Itachi's user avatar
  • 6,671
1 vote
1 answer
163 views

I have an ISO two-letter country code (e.g., "US") and need to determine its continent's name. I know about the continent property of Locale.Region, which is also a Locale.Region instance, ...
lazarevzubov's user avatar
  • 2,493
0 votes
1 answer
70 views

I want to exclude a directory in documents storage class from backup. Setting exclusion attribute like so + (BOOL)kit_addSkipBackupAttributeForItemAtURL:(NSURL *)url { if (![[NSFileManager ...
1 vote
0 answers
69 views

I have a bug on my hands where icons, etc are being backed up to iCloud backup. My first knee jerk reaction was that it's in the documents directory class but they are properly stowed in the ...
0 votes
2 answers
56 views

I would like to utilize NSProgress localizedAdditionalDescription but I cannot figure out the combination to get it to format file count. Either i am not getting any suffix or I get bytes. progress....
0 votes
1 answer
71 views

I am having project in XCode version: 15.4 using Swift for iOS development -> uiKit. I have added the c++ class to my project. MyStaticClass.h: #ifndef MYSTATICCLASS_H #define MYSTATICCLASS_H ...

15 30 50 per page
1
2 3 4 5
...
65

AltStyle によって変換されたページ (->オリジナル) /