Post

Replies

Boosts

Views

Activity

Reply to iOS 18 App Intents while supporting iOS 17
Are you sure this doesn't work? (not actual code) if(#available iOS 18) { AppShortcut(intent: SearchSnippetIntent(), phrases: [ "Search \(.applicationName) Studio", "Search \(.applicationName)" ], shortTitle: "Search", systemImageName: "magnifyingglass") } } Have you tried something like: (not actual code) @available iOS 18 struct SnippetsShortcutsAppShortcutsProvider: AppShortcutsProvider { // List all four items here } @available iOS 17 struct SnippetsShortcutsAppShortcutsProvider: AppShortcutsProvider { // List just the three iOS 17 ones here }
Topic: Machine Learning & AI SubTopic: General Tags:
Jun ’24
Reply to SwiftData: Unable to delete (Xcode 16)
Let me reduce what you wrote down to the relevant bits: { for index in indexSet { let chat = chatLog[index] modelContext.delete(chat) } } You haven't told us what is in chatLog, so we don't know whether you actually remove the deleted item from the array, or whether you repopulate chatLog after deleting the item from modelContext. Can't really help you unless we know exactly what you're doing. If chatLog reflects what's in modelContext, then if it shows the deleted item then that item definitely wasn't removed from modelContext.
Jun ’24
Reply to Today's Date and Time
Why do you need to do this? You have control over the server, right? The user cannot affect the server's date time, so: If the device date is before the server date, then don't allow them to do something. If the device date is after the server date, then you know it's rubbish because the user has changed their device date to be after the server date. The server date should be the one source of truth. That's always the correct date. Deal with it like that, and you should be fine.
Jun ’24
Reply to iOS Unlock Method
No. Why do you need to know that? Can't you just offer the best option to your users? If the device has biometrics and they're enabled and ready (which is something you can definitely check for) then handle it. If the device has biometrics but they aren't enabled/available, handle that instead. You don't need to know how the user unlocked their device to deal with authentication in your own app.
Topic: Privacy & Security SubTopic: General Tags:
Jun ’24
Reply to Screen tome big on ios 18 beta
Can't you just ask your parents to login on your phone and turn it all off? Why do you think third-party app developers here would be able to bypass the Screen Time password? There seems to be an issue with Screen Time settings on iOS 18 beta, so maybe you should downgrade to iOS 17, deactivate Screen Time (with your parents input), and install the beta again?
Jun ’24
Reply to iOS 18 App Intents while supporting iOS 17
Are you sure this doesn't work? (not actual code) if(#available iOS 18) { AppShortcut(intent: SearchSnippetIntent(), phrases: [ "Search \(.applicationName) Studio", "Search \(.applicationName)" ], shortTitle: "Search", systemImageName: "magnifyingglass") } } Have you tried something like: (not actual code) @available iOS 18 struct SnippetsShortcutsAppShortcutsProvider: AppShortcutsProvider { // List all four items here } @available iOS 17 struct SnippetsShortcutsAppShortcutsProvider: AppShortcutsProvider { // List just the three iOS 17 ones here }
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to iOS 18 bugs and glitches
Making a post in the Developer Forums with a long list of issues isn't really the best way to raise the bugs. Raise a Feedback report for each issue separately. If you then want to explain the bugs in your post, you can do so - in case others encounter them, too - but please add the FB number to each one.
Replies
Boosts
Views
Activity
Jun ’24
Reply to Add the info of each picture in the photo app, which is derived from the name of the user's self-built album.
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. These forums are NOT where Apple's actual developers chat about stuff. Your question is more of a support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks.
Replies
Boosts
Views
Activity
Jun ’24
Reply to SwiftData: Unable to delete (Xcode 16)
Let me reduce what you wrote down to the relevant bits: { for index in indexSet { let chat = chatLog[index] modelContext.delete(chat) } } You haven't told us what is in chatLog, so we don't know whether you actually remove the deleted item from the array, or whether you repopulate chatLog after deleting the item from modelContext. Can't really help you unless we know exactly what you're doing. If chatLog reflects what's in modelContext, then if it shows the deleted item then that item definitely wasn't removed from modelContext.
Replies
Boosts
Views
Activity
Jun ’24
Reply to Today's Date and Time
Why do you need to do this? You have control over the server, right? The user cannot affect the server's date time, so: If the device date is before the server date, then don't allow them to do something. If the device date is after the server date, then you know it's rubbish because the user has changed their device date to be after the server date. The server date should be the one source of truth. That's always the correct date. Deal with it like that, and you should be fine.
Replies
Boosts
Views
Activity
Jun ’24
Reply to iOS Unlock Method
No. Why do you need to know that? Can't you just offer the best option to your users? If the device has biometrics and they're enabled and ready (which is something you can definitely check for) then handle it. If the device has biometrics but they aren't enabled/available, handle that instead. You don't need to know how the user unlocked their device to deal with authentication in your own app.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Screen tome big on ios 18 beta
Can't you just ask your parents to login on your phone and turn it all off? Why do you think third-party app developers here would be able to bypass the Screen Time password? There seems to be an issue with Screen Time settings on iOS 18 beta, so maybe you should downgrade to iOS 17, deactivate Screen Time (with your parents input), and install the beta again?
Replies
Boosts
Views
Activity
Jun ’24