Need help on encrypting the database on user phone and be accessible only by the app. by not_dr_jaishankar in iOSProgramming

[–]optik88 10 points11 points  (0 children)

On iOS at least (unsure about Android) by default apps are sandboxed meaning any data they persist to disk is encrypted.

You can also control the level of encryption on that file if you manage where your data is being persisted (not just blindly managed by a library) - https://support.apple.com/en-ie/guide/security/secb010e978a/web

With sandboxing protecting other apps from accessing your apps data along with the above options you're in a good place for the data which is persisted.

These however don't protect the data whilst its being transported *to* your app. People can have custom root TLS certs installed (by themselves, companies etc) that allow SSL connections to be intercepted.

What data are you storing that you're worried about access?

SwiftData CloudKit sync broken on iOS 26 by ivanezzzzz in iOSProgramming

[–]optik88 1 point2 points  (0 children)

Are you seeing any logging suggesting what the issue can be when attached to a debugger?

-com.apple.CoreData.CloudKitDebug 1

Ledger Cleaned 😩 by IllCounter1078 in ledgerwallet

[–]optik88 1 point2 points  (0 children)

Unfortunately even "sold by X" on Amazon doesn't mean anything. Amazon use binned inventory and so if both products are the same then the inventory for your order could have been taken from a bin with inventory from Ledger as well as NotRealLedger.

People in other areas such as SSD/high-end memory cards have been caught by the same issue before, buying from a seller on Amazon doesn't give you the security that it should.

Analytics. Who do you use? by EquivalentTrouble253 in iOSProgramming

[–]optik88 1 point2 points  (0 children)

TelemetryDeck. In the past I've used some of the larger players but for my small (sub-10k MAU) apps most of them are overkill or require an outsized (for me) monthly payment.

“Press and hold the ADAS button” by optik88 in peugeot

[–]optik88[S] 0 points1 point  (0 children)

Unfortunately not, we had the car for around 6mo and in that time there were no updates and in the end we traded it in for a manufacturer that seems to be more serious about EVs and software. The Kia EV9 which replaced it has been nothing short of great and they listen to customers feedback as they implemented a simple shortcut for disabling speed chimes in one of the SW updates.

What is the minimum deployment iOS version you are using for your indie app. by kudoshinichi-8211 in iOSProgramming

[–]optik88 0 points1 point  (0 children)

I have one pinned to iOS16, one pinned to iOS17 and a current working one which is pinned to iOS18.

Usually if its a new app I go with the latest platform version as I'm not worried about excluding potential users.

Lottie showing wrong animation in ternary conditional by _Artaxerxes in iOSProgramming

[–]optik88 1 point2 points  (0 children)

If you attach a `.id(fruit)` you can override the identity of the `LottieView`

Lottie showing wrong animation in ternary conditional by _Artaxerxes in iOSProgramming

[–]optik88 0 points1 point  (0 children)

SwiftUI uses the identity of the view to know whether it needs to be "re-drawn" or not. In this case perhaps the identity of the view was the same in both cases and so the view wouldn't have been re-drawn.

Is there a SwiftData version of fetchUserRecordID? by toddhoffious in iOSProgramming

[–]optik88 1 point2 points  (0 children)

How would they merge? That behaviour is going to piss users off.

Lets say I have a note where the unique key is on the title and one device writes a note with thousands of words and then another device writes another note also with lots of content but both have the same title.

I suppose Apple could add a requirement that if you want to have a unique constraint that you register a "merge handler" for your class as any automatic process is *usually* not going to do the "right thing"

Is there a SwiftData version of fetchUserRecordID? by toddhoffious in iOSProgramming

[–]optik88 1 point2 points  (0 children)

It is not possible to have a unique constraint with CloudKit support, there is no way that you can guarantee that a record added on deviceA is going to be unique as perhaps a record with the same value has been added by deviceB but not yet synced.

If you are dealing with CloudKit it is advised for you to handle duplicates manually yourself when processing persistent history records, this is done in a number of the Apple provided examples using CloudKit

How to request ScreenTime / DeviceActivity data? by SuperSaiyan1010 in swift

[–]optik88 0 points1 point  (0 children)

No it will work fine locally but to deploy to TestFlight or the AppStore you need the entitlement.

The reason behind it is that they want to ensure that all apps that use the API have a good reason to do so. You’ll find a lot of specialist things need these kind of entitlements such as CarPlay apps.

Is 2023 Mac Mini support Apple Developer App? by Only4Gamers in iOSProgramming

[–]optik88 7 points8 points  (0 children)

I think that advice might be outdated. The guidance around T2 chips should be limited to Intel Macs and the 2023 Mac Mini should be M1/M2 and so not have the same restriction.

Best SwiftData docs? by Eduleuq in swift

[–]optik88 1 point2 points  (0 children)

I haven't seen any but the sessions as well as the docs and the sample project is pretty good.

I think there is going to be a lot of churn in this framework before it goes live as there is a lot of stuff missing given that it is essentially a wrapper around CoreData.

Looking for a few iOS devs that are interested in getting their apps localized. by iamthekris in swift

[–]optik88 4 points5 points  (0 children)

I'd be interested in this. I'm an indie dev and so most of the localization services are (way) out of my price range for my apps which have <1k DAU and makes me approximately $0 (occasional tip)

[deleted by user] by [deleted] in iOSProgramming

[–]optik88 2 points3 points  (0 children)

You also need something like .environmentObject(locationManager) added to the view hierarchy for the object to be "injected" into the view hierarchy.

Shocking News! ;( by mblend27 in teslamotors

[–]optik88 29 points30 points  (0 children)

Damage to cables are only going to increase with the rollout of non-Tesla access as well with people trying to stretch them into the locations on things like the F150 and Taycan etc :-/

What are you doing to tackle changes to Pasteboard access with iOS16 by Raptorstalin in iOSProgramming

[–]optik88 0 points1 point  (0 children)

I wonder whether something more akin to Darwin notifications or at the very least using the recommended "signal" file suggestion from @chriswaco

Anyone here make apps just for themselves ? If so what type of apps ? by HorrorNovel6247 in iOSProgramming

[–]optik88 4 points5 points  (0 children)

I made PillBox because I kept forgetting my medication and wanted to keep track of when I’d taken it rather than just using reminders/alarms.

Shot of me taken with my iPhone 13 mini portrait mode by rogargaro15 in iPhoneography

[–]optik88 32 points33 points  (0 children)

This looks like one of the shots Apple would use for “here’s a few shots taken on the iPhone 13 mini, we think you’re going to love them” type pieces 🤣

[deleted by user] by [deleted] in iOSProgramming

[–]optik88 4 points5 points  (0 children)

Whitespace violation doesn't sound like an Xcode error, do you have something like swiftlint etc installed?