Skip to main content
Ky -'s user avatar
Ky -'s user avatar
Ky -'s user avatar
Ky -
Software Engineer | UI/UX Designer
  • Member for 13 years, 10 months
  • Last seen this week
awarded
revised
How do I sort an array of objects by a subfield?
specified what I meant back then
Loading…
comment
How do I sort an array of objects by a subfield?
If you think this question does not show research effort, or isn't useful, I would appreciate a comment giving me feedback for how I can write a better question in the future 🙂
revised
Improving the efficiency of storing millions of instances of 2-UUID structs to disk in short time
Improved/clarified the wording based on the discussion in the comments/chat
Loading…
revised
fileExists(atPath:) always returns false, but Data(contentsOf:) returns true for the same URL
I'll concede on the title, but the inline code formatting is helpful to distinguish code from prose
Loading…
Loading…
Loading…
comment
Swift 3.0 FileManager.fileExists(atPath:) always return false
I'm having trouble how your code functions differently from the example code in the question
comment
Is there a way to tell if a lazy var has been initialized?
If you think this answer is not useful, I would love to hear your reason so I can make better answers in the future :)
revised
How do I continue playing video in the background using AVPlayer?
Grammar check. Tried to keep the spirit while improving the flow of the sentences
Loading…
Loading…
comment
How do I load metadata from an AVAsset into a SwiftUI View without compiler warnings?
@Sweeper Task.detached seems to be what I needed. Thank you! Please write that as an answer so I can accept it :3
comment
How do I load metadata from an AVAsset into a SwiftUI View without compiler warnings?
@dalton_c I do hope so, but I fear it'll be a few months of breaking-errors, feedback that goes into the Void Hole, pushback from the Swift maintainers before they understand the usecases, and grumbling bodges/kludges
comment
How do I load metadata from an AVAsset into a SwiftUI View without compiler warnings?
@Sweeper I'll try that, thank you. It's in a View's .onChange(of:_:). I agree it should run in the background, but the warning explicitly says that's a problem: "Passing argument of non-sendable type 'AVMetadataItem' outside of main actor-isolated context may introduce data races"
Loading…
awarded
comment
How do I create a singleton in Swift 6?
@RoyRodney but then whenever I try to prepare/print anything, the compiler requires me to mark that as async, which then requires I wrap it in a Task, which then adds unnecessary multithreading and no longer guarantees FIFO
comment
How do I create a singleton in Swift 6?
Accepting this for suggestion #3
1
2 3 4 5
232