Post

Replies

Boosts

Views

Activity

Reply to Is Apple Sign In Required if we use FB, Google, Amazon sign in?
Nothing says you have to use Sign in with Apple specifically, though it’s quite convenient that Sign in with Apple just so happens to already satisfy those requirements. But any third party would be free to develop a new sign in option that also satisfies those requirements. Maybe one or more such options already, or will eventually, exist. (Of course this is actually just a clever response to meddlesome governments forcing Apple to offer a more “open" platform. Now you aren’t forced to use Sign in with Apple but users still have an option for enhanced privacy.)
Apr ’24
Reply to A few questions about CodingKeys.
Try removing the decoder.keyDecodingStrategy = .convertFromSnakeCase line. You are already supplying an explicit key mapping via enum CodingKeys, so you don’t want the decoder to attempt to perform additional conversion on top of your mapping. Can't the enum be named something other than CodingKeys? CodingKeys is a special name recognized by the compiler to indicate that you have taken charge of defining the key mapping. So enum CodingKeyss will be ignored and the compiler will synthesize its own version of CodingKeys based on your property names. That, combined with the convertFromSnakeCase strategy, ends up performing the same name mapping that your explicit enum CodingKeys performs.
Topic: App & System Services SubTopic: General Tags:
Apr ’24
Reply to Swift, C, and memory leaks
Do I need to do something to ensure bytes is released, since it doesn't seem to be happening on its own? Definitely! See this note in the documentation for UnsafeMutablePointer.allocate(capacity:): When you allocate memory, always remember to deallocate once you’re finished. The Unsafe in the name is a reminder you’re in old-school C land now, where you need to free() at some point after every malloc().
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’24
Reply to New flag in emoji
(Before anyone advises just reposting this in the user support forum...) This is actually not up to Apple to implement, nor any other vendor. Emoji flags, defined by Unicode, essentially support only countries and regions that have a two-letter ISO 3166-1 country code, and currently Kurdistan does not have such a country code. (For those of us previously unfamiliar, Wikipedia says it’s a roughly defined geo-cultural region covering parts of Iran, Iraq, Syria, and Turkey.) Here’s a great post with full details of how emoji flags work, including discussion of the lack of support for regions like this: https://blog.emojipedia.org/emoji-flags-explained/
Topic: App & System Services SubTopic: General Tags:
Mar ’24
Reply to iOS17.4 - iPhone Pro / ProMax - SHA256
WebKit should be adding be using a prefix as well. I’d appreciate you filing a bug against it. Please post your bug number, just for the record. It looks like the culprit is something called libSESShared.dylib, according to this helpful bit of information someone has put together: https://github.com/MTACS/iOS-17-Runtime-Headers/blob/main/Frameworks/CoreFoundation.framework/NSData.h#L1503
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’24
Reply to iOS 17 Simcard Status
In order to get more accurate compass data it seems that iOS devices with a simcard installed can provide better results. What leads you to believe this is the case? Is it documented by Apple somewhere? All recommendations are pointing to the deprecated CoreTelephony functions which are obsolete since I am working with iOS17 devices. And note that various functions are annotated with something like "Deprecated with no replacement".
Mar ’24
Reply to I need to prevent screen capture
This gets asked a lot, and the answer always amounts to: this is an unrealistic requirement and it’s impossible to implement a perfect solution. Search the forum to find lots of old discussions. Here’s a thread with an especially clear and logical argument: link.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’24