Post

Replies

Boosts

Views

Activity

Reply to App Terminate Save Record
There isn't a guarantee and you likely get very little time. It might be better to leave the recording in a reasonable state. This might help... https://stackoverflow.com/questions/68911874/how-to-detect-when-a-user-terminates-an-app-swift
Topic: Media Technologies SubTopic: Audio Tags:
Dec ’23
Reply to Challenged shouldChangeCharactersIn behaviour.
It adds a lot of complexity to the editing process. Our code works as expected if a user backspaces at the end of the text, but deletes the wrong character if they move the cursor. Something that I found helpful was to not add injected characters after user typed text, other than possibly at the end. Essentially reformatting the text after the edit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’23
Reply to App Terminate Save Record
There isn't a guarantee and you likely get very little time. It might be better to leave the recording in a reasonable state. This might help... https://stackoverflow.com/questions/68911874/how-to-detect-when-a-user-terminates-an-app-swift
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Watch OS Simulators not showing for XCode 15.1
Have you installed any watchOS simulators? Check xcode's settings, platforms tab. It doesn't include watchOS by default when you install xcode. You also might need to add a simulator in xcode's window | devices and simulators, simulators tab. You might also want to set the show as destination option to always.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to print(String(format: "%.2f", 1.255)) => 1.25
You are probably running into the binary floating point representation limits. Float/Double won't always round the way you expect. If that matters for your application, you should look at using Decimal numbers. It doesn't eliminate rounding problems, but they will behave more like you would expect.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Challenged shouldChangeCharactersIn behaviour.
It adds a lot of complexity to the editing process. Our code works as expected if a user backspaces at the end of the text, but deletes the wrong character if they move the cursor. Something that I found helpful was to not add injected characters after user typed text, other than possibly at the end. Essentially reformatting the text after the edit.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Problems with csv-Import
Is that where you are saving the file? It sounds like it is in the bundle and on a real device that will be write protected. You need to save the file in a write enabled folder. Documents or some where in the Application Data folder, for instance.
Replies
Boosts
Views
Activity
Dec ’23