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 Complications menu for Xcode missing?
This thread might help... https://forums.developer.apple.com/forums/thread/740558
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to This is a major code challenge,I believe there will definitely be warriors who will challenge this difficulty
You need to include more context. What is the view this is in? How is title declared? I'm not seeing an error if title is declared as a state variable. I don't see the error you mention at all,
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Macbook Pro 16 inch 2019 end of support
I would suggest using the currently supported devices as a guide. I would suspect memory and disk space would be a potentially bigger issue.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Where is help on Swift documentation markup?
You might find this useful... https://developer.apple.com/documentation/xcode/documenting-apps-frameworks-and-packages It isn't comment based.
Topic: Programming Languages SubTopic: Swift 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 Above iOS 17 UIWebview issue
It is worth remembering that it has been deprecated for some time.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to XCode Previews not working
My thought is that is a small system.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to tvOS app started crashing with 17.2, could not load NIB in bundle
It would be worth filing bug reports.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to No sample code
There is a blue download button on the page you linked to. That downloads a zipped copy of the project. It is in the page heading.
Replies
Boosts
Views
Activity
Dec ’23
Reply to Custom button not respecting the size defined in frame
You are setting the background for the label and not the button as a whole.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Preview Macro fails to load when using ObservedObject
You need to return the view... #Preview { @StateObject var cViewModel = ChildViewModel() return ChildView(viewModel: cViewModel) }
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