Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
143 views

I encountered a breaking change in iOS 26 when using URL(fileURLWithPath:) with filenames that start with a tilde (~). The Problem: let filename = "~MyFile.txt" ...
Dileepa Chandrasekara's user avatar
1 vote
2 answers
219 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
115 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 ...
Philip Pegden's user avatar
-1 votes
1 answer
42 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&...
Kevin Renskers's user avatar
0 votes
1 answer
141 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
252 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 ...
user2153522's user avatar
0 votes
0 answers
91 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 ...
lexemz's user avatar
  • 11
-6 votes
1 answer
197 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))" ) ...
igouy's user avatar
  • 2,700
-1 votes
1 answer
101 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: ...
lain's user avatar
  • 1
1 vote
1 answer
113 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 ...
Karl Ehrlich's user avatar
-1 votes
1 answer
80 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,681
1 vote
1 answer
234 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,513
0 votes
1 answer
76 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 ...
Anton Tropashko's user avatar
1 vote
0 answers
71 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 ...
Anton Tropashko's user avatar
0 votes
2 answers
59 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....
Marek H's user avatar
  • 5,732

15 30 50 per page
1
2 3 4 5
66