Post

Replies

Boosts

Views

Activity

Reply to Will a MacBook Air M1 with 8GB RAM be suitable for Flutter Development, Web Development, and lots of background programs?
There are suggestions that Xcode could benefit from more than 8Gb, and you emphasise multitasking... The other thing to consider is that this may be a bad time to buy the current M1 MacBook Air, as an update is expected soon. See: https://buyersguide.macrumors.com/#MacBook_Air On the other hand (if you want "cheap"), refurbished MacBook Airs are available from Apple (here in the UK), and this could be an excellent buy (I'm still using my refurbished 2015 MacBook Air).
Apr ’22
Reply to How to use Timer when app is in background
As you know, Timer does not work in the background. One common workaround is: Detect when the app is going into the background Convert each live timer into a local notification (at the timer's activation time) Cancel the timer On foregrounding the app: Convert any outstanding local notifications back into Timers Cancel the local notification Of course, if the local notification fires while the app is backgrounded, it will require user intervention, before it can carry out any functionality. Also of course, this workaround may not be suitable for your purpose (but perhaps the principle is helpful)?
Apr ’22
Reply to Bundle.main.url returning nil
When adding resources to a Swift Package, you need to configure the manifest, to explicitly declare the resources. Have you done this? Perhaps something like... targets: [ .target( name: "MyLibrary", resources: [ .process("Audios/Completed.mp3")] ), ] Then you can refer to the resources in code. See: https://developer.apple.com/documentation/swift_packages/bundling_resources_with_a_swift_package
Apr ’22
Reply to Apple Code Change
the Apple store changes its code requirements every couple years true it will require practically a complete rewrite of the original code false In the early years of Swift, the language evolved very quickly, requiring major changes each year. We may now be seeing a similar evolution with SwiftUI. Related (non-code) issues also change, like privacy and App Tracking Transparency requirements. Existing apps will often continue to run, but changes to iOS, and new device sizes, can require an app update.
Apr ’22
Reply to How to change the IOS version in Xcode 13 simulation
To add a new simulated device, with a different version of iOS From Xcode: Window > Devices and Simulators > Simulators Click the "+" (at the bottom-left) Enter a new "Simulator Name" Choose "Device Type" Choose "OS Version"... ...if necessary, "Download more simulator runtimes...", and choose the versions of iOS that you want) Click "Create" The simulator acts like an iPhone (or iPad). It's a very accurate simulation, but of course some features are not available (like the on-device cameras)
Apr ’22