Post

Replies

Boosts

Views

Activity

Using stringsdict to manage plurals in AppIntents
Hi there, I'm currently adding AppIntents to my iOS app, using TypeDisplayRepresentation to identify each entity. I'm following the example provided in the docs for the name and numericFormat strings, and I have an accompanying stringsdict file of the same format as the example. This works perfectly in the name of the actions, equivalent to Find Books/All Books, but now within my app anywhere the key value is used (in this example, the string "Book"), %#@VARIABLE@ is literally substituted in. I think the issue is I'm not sure how to handle a NSStringLocalizedFormatKey which is just a single word. Should I be defining the strings differently within my SwiftUI views to fix this, or is there a problem in my stringsdict file? Thank you!
2
0
735
Apr ’23
Embedding a NavigationStack within the detail view of a NavigationSplitView
I'm using a two column NavigationSplitView, where the view passed for the detail column is the root of a NavigationStack. The navigation works as expected, but the navigationTitle and toolbar elements of the detail view are very slightly delayed when the view appears on iOS, such that they 'pop' in rather than smoothly animating like normal. Returning to the root of the view from views higher in this stack animates as expected. Has anyone seen anything like this before? Thanks!
6
0
2k
May ’23
"Find" Intent failing in iOS 17 with LNPerform-QueryErrorDomain
Hi there, I have three "find" AppIntents in my app, each associated with a different AppEntity. These worked fine in iOS 16, but since upgrading to iOS 17 all fail with an LNPerform-QueryErrorDomain error. I'm struggling to debug this - shortcuts fail reporting this error type, and in the console I can see two errors with the BackgroundShortcutRunner process occurring at this time: error 20:40:54.224489+0100 BackgroundShortcutRunner Operation `<LNPerformQueryConnectionOperation: 0x895b3a3c0, identifier: E3E70A3B-E10B-41A8-8C9B-DA32CA18B109>` error Error Domain=LNPerformQueryErrorDomain Code=10003 "(null)" error 20:40:54.225474+0100 BackgroundShortcutRunner -[WFAction runWithInput:userInterface:runningDelegate:variableSource:workQueue:completionHandler:]_block_invoke_3 Action <WFLinkContentItemFilterAction: 0x8929729b0, identifier: <identifier>, contentItemClass: WFLinkEntityContentItem_<identifier>> finished with error {domain: LNPerformQueryErrorDomain, code: 10003}. Error Domain=LNPerformQueryErrorDomain Code=10003 Does anyone have any suggestions on where to go with this? Thanks!
0
0
671
Jul ’23
Optional Parameter using WidgetConfigurationIntent
Hi there, I'm adding a new widget using the new WidgetConfigurationIntent which takes a number of parameters, including one which conforms to AppEntity. It is defined as an optional. When the user is configuring the widget, after one of the suggested entities is chosen, there is no way to return to a state where this value is nil. Is this possible? I'd like the user to be able to select "None" for this parameter. For now, I'm using a bool to determine whether the AppEntity parameter is used. Thanks!
1
0
810
Aug ’23
Combining NavigationSplitView and TabView in iOS 18
Hi folks, I've used a NavigationSplitView within one of the tabs of my app since iOS 16, but with the new styling in iOS 18 the toolbar region looks odd. In other tabs using e.g. simple stacks, the toolbar buttons are horizontally in line with the new tab picker, but with NavigationSplitView, the toolbar leaves a lot of empty space at the top (see below). Is there anything I can do to adjust this, or alternatively, continue to use the old style? Thanks!
3
0
758
Jul ’24