You can detect you are running on a mac
https://stackoverflow.com/questions/65042788/how-to-detect-if-an-ios-app-is-running-on-an-m1-mac
Post
Replies
Boosts
Views
Activity
An existing post with additional information
iOS app on MacOS M1 - Detect MacOS - https://developer.apple.com/forums/thread/707618?answerId=716504022#716504022
and then I realized that was @zikomiko answering the question...
The problem is the file is outside your app's container.
I've not used that functionality myself.
https: //useyourloaf.com/blog/accessing-security-scoped-files/
This goes into how to do it.
You might want to look at the QLPreviewController.
That is because 1.25 can be exactly represented where 1.255 can't be.
1.255 is approximately
1.25499999999999989341858963598497211933135986328125
1.255001 is
1.25500100000000003319655661471188068389892578125
You should consider using Decimal for money, especially if you are adding/subtracting a lot of amounts.
Cumulative rounding can add up and matter.
See reply below...
I missed it was swift data.
Also if the zero's are a number, you need to drop the leading zeros, otherwise enclose them in quiotes.