Post

Replies

Boosts

Views

Activity

locationManagerShouldDisplayHeadingCalibration not being called
I am working with the location manager for heading info but keep on getting the compass heading calibration screen which I don't want. According to CLLocationManagerDelegate, that should be able to be disabled by returning NO from the delegate method: locationManagerShouldDisplayHeadingCalibration. However, that is never called. (I don't need to know true headings, just that the user is turning around)
0
0
486
May ’21
Text misaligned when adding images to an HStack
Wasted about 3 hours on this yesterday. I add a Text item in a field of a Form. Well and good. It wraps if needed, alights to the left a fixed amount no matter how much or how little text there is. All expected. I added an image. It alll went to hell after that as the text just sort of drew where it wanted to. It looked like the parent tile was now wider then the display area. No amount of playing with Spacer(), padding, Frames. HStack alignments, Position fields, and so on did any good. as all I am trying to do a simple tile with a text block and image. And SwiftUI fights me every step of the way. It's for a simple restaurant menu item tile. Name of item, price and image. If I drop the image, then it formats in a predictable fashion. HStack{ VStack{ if let maindish = item["name"]{ Text("\(maindish)").foregroundColor(.primary).modifier(favoriteStyle()).fontWeight(.regular).font(.custom("Avenir",size:fontSize)) } if let formattedPrice = item["formatted_price"]{ Text("\(formattedPrice)").foregroundColor(.secondary).modifier(favoriteStyle()).fontWeight(.bold).font(.custom("Avenir",size:fontSize)) } } Spacer() if let imageURL = item["thumbnail_image"]{ if let url = URL(string:imageURL) { drawImage(url:url, size:85.0).padding(0.0).padding(.trailing,75.00) } } }
Topic: UI Frameworks SubTopic: SwiftUI
0
0
416
Jul ’24
Dynamically creating and modifying shortcuts
I am needing to add/delete shortcuts in our app without using the Add to Siri button. But have been stymied at every turn. The most recent example is some code that uses an "AppShortcutCenter" call, supposedly added in iOS 17. But there is no such thing as that which I can find. What gives, and what's needed to do custom shortcuts on demand programmatically?
0
0
448
Jan ’25
Extracting the full text of a Siri command prompt
I've been stuck for days trying to figure out how to extract the full text of a Siri prompt that launches my app. We need to be able to get the text of the full command, such as "Hey siri, buy dogfood...." so I can get "dogfood" or anything else following 'buy' . The examples I am finding are a) out of date or b) incomplelete. Right now we're using AppIntents with Shortcuts, but have to use dedicated shortcuts for each specific purchase, which are obviously very limiting.
0
0
367
Feb ’25
SIri trigger command conflicts
We're having trouble with getting Siri to hand off specific trigger words to our app via shortcuts. I want to be able to say "Hey Siri Myappname Foobar" but in some cases if Foobar is the name of a specific business it may launch maps instead showing locations of those businesses. Is there any way to inform Siri, "no, *****, launch our app as the shortcut specifies!"
0
1
269
Mar ’25
Unable to do App Transfer
We're trying to transfer an app to another account holder and have the following two problems blocking it. in app purchases: But we don't have any in-app purchases. Not entire clear as to what problem that is supposed to cause anyway. We are instructed to remove all Testflight builds, yet I can find no place to delete old Testflight builds and in fact, supposedly we're not supposed to be able to do that in the first place. We get: "You must first remove all builds and testers from the app you want transferred and clear each information field below Test Information." What gives?
0
0
251
Jul ’25
Debug View Hierarchy button missing
I've thought I've seen all, now the Debug View Hierarchy button has decided to take a hike. One of XCode's coolest features just upped and vanished on the latest project. Shows fine in the previous two. Can't find anything that looks like an on/off switch for the thing and have capabilities and debug settings matched to the ones that work. (and yes, I am in debug mode)
1
0
610
Jul ’24
Opening up Siri prefs from an app
In our onboarding sequence we inform the user that Siri is required and to set it up if they have it off. We have a link that takes us to the root of the Systems tree, but have been unable to get it to launch into the Siri prefs itself, using a scheme that's widely available on StackOverflow, GitHub and so on. ChatGPT says it can't be done as of 2022. I see a list on GitHub of the domains that was last updated just a year ago, suggesting that at least as of 17 it "should" work. Another place said Apple would bounce apps which attempt to do that (we have the recommended URL string already in there which should have been detectable by their scans, and have not been bounced due to that so far).
1
0
608
Sep ’24
Is there a way to suppress Siri's "Something went wrong"
I'm working with appIntents and custom responses with Siri. Sometimes I get the "Something went wrong..." message seemingly at random. There is a way to suppress it in a shortcut using its scripting language, but is there anything in Sirikit that could in effect, tell it to knock it off!, and suppress that message. Or, is there a way, when generating a Shortcut in appIntents that allows for generating a small script as well?
2
0
371
Aug ’24
Dynamically generating AppShortcut phrases
I want to be able to dynamically update the phrase dictionary in an AppShortcut. However, whenever I abstract the phrases, the shortcut fails to display. That is, I am trying to do: static var phrases: [AppShortcutPhrase<MyIntent>] = ["\(.applicationName) hello world"] AppShortcut( intent: MyIntent(), phrases: phrases, shortTitle: "hello world", systemImageName: "" ) However, the following works: AppShortcut( intent: MyIntent(), phrases: "\(.applicationName) hello world", shortTitle: "hello world", systemImageName: "" ) So, what gives?
Topic: UI Frameworks SubTopic: General
2
0
435
Feb ’25
Not seeing any updates to my app
I just posted an update to my app last weekend, and it shows in the store just fine, but I am not seeing a single download recorded for the update process. I would expect to see 20k. ideas?
Replies
0
Boosts
0
Views
564
Activity
Apr ’21
locationManagerShouldDisplayHeadingCalibration not being called
I am working with the location manager for heading info but keep on getting the compass heading calibration screen which I don't want. According to CLLocationManagerDelegate, that should be able to be disabled by returning NO from the delegate method: locationManagerShouldDisplayHeadingCalibration. However, that is never called. (I don't need to know true headings, just that the user is turning around)
Replies
0
Boosts
0
Views
486
Activity
May ’21
Text misaligned when adding images to an HStack
Wasted about 3 hours on this yesterday. I add a Text item in a field of a Form. Well and good. It wraps if needed, alights to the left a fixed amount no matter how much or how little text there is. All expected. I added an image. It alll went to hell after that as the text just sort of drew where it wanted to. It looked like the parent tile was now wider then the display area. No amount of playing with Spacer(), padding, Frames. HStack alignments, Position fields, and so on did any good. as all I am trying to do a simple tile with a text block and image. And SwiftUI fights me every step of the way. It's for a simple restaurant menu item tile. Name of item, price and image. If I drop the image, then it formats in a predictable fashion. HStack{ VStack{ if let maindish = item["name"]{ Text("\(maindish)").foregroundColor(.primary).modifier(favoriteStyle()).fontWeight(.regular).font(.custom("Avenir",size:fontSize)) } if let formattedPrice = item["formatted_price"]{ Text("\(formattedPrice)").foregroundColor(.secondary).modifier(favoriteStyle()).fontWeight(.bold).font(.custom("Avenir",size:fontSize)) } } Spacer() if let imageURL = item["thumbnail_image"]{ if let url = URL(string:imageURL) { drawImage(url:url, size:85.0).padding(0.0).padding(.trailing,75.00) } } }
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
0
Views
416
Activity
Jul ’24
Dynamically creating and modifying shortcuts
I am needing to add/delete shortcuts in our app without using the Add to Siri button. But have been stymied at every turn. The most recent example is some code that uses an "AppShortcutCenter" call, supposedly added in iOS 17. But there is no such thing as that which I can find. What gives, and what's needed to do custom shortcuts on demand programmatically?
Replies
0
Boosts
0
Views
448
Activity
Jan ’25
Extracting the full text of a Siri command prompt
I've been stuck for days trying to figure out how to extract the full text of a Siri prompt that launches my app. We need to be able to get the text of the full command, such as "Hey siri, buy dogfood...." so I can get "dogfood" or anything else following 'buy' . The examples I am finding are a) out of date or b) incomplelete. Right now we're using AppIntents with Shortcuts, but have to use dedicated shortcuts for each specific purchase, which are obviously very limiting.
Replies
0
Boosts
0
Views
367
Activity
Feb ’25
SIri trigger command conflicts
We're having trouble with getting Siri to hand off specific trigger words to our app via shortcuts. I want to be able to say "Hey Siri Myappname Foobar" but in some cases if Foobar is the name of a specific business it may launch maps instead showing locations of those businesses. Is there any way to inform Siri, "no, *****, launch our app as the shortcut specifies!"
Replies
0
Boosts
1
Views
269
Activity
Mar ’25
Siri shortcuts command asks for Contacts
We have created an app that uses Appintents to plug into Siri. However, launching the app &gt;sometimes&lt; will launch a menu that will let the user choose between the app and Contacts. Why? How can I tell Siri to not ask for Contacts?
Replies
0
Boosts
0
Views
275
Activity
Mar ’25
Unable to do App Transfer
We're trying to transfer an app to another account holder and have the following two problems blocking it. in app purchases: But we don't have any in-app purchases. Not entire clear as to what problem that is supposed to cause anyway. We are instructed to remove all Testflight builds, yet I can find no place to delete old Testflight builds and in fact, supposedly we're not supposed to be able to do that in the first place. We get: "You must first remove all builds and testers from the app you want transferred and clear each information field below Test Information." What gives?
Replies
0
Boosts
0
Views
251
Activity
Jul ’25
Looping back in an AppIntent
I want to offer the user the opportunity to add more stuff to a list in AppIntents, but nothing I've tried "loops back" to the first Siri query. Checked several LLMs and they are suggest using "requestDialog" which doesn't exist, and calling recursively my AppIntent. Is this even possible?
Replies
0
Boosts
1
Views
124
Activity
Sep ’25
Debug View Hierarchy button missing
I've thought I've seen all, now the Debug View Hierarchy button has decided to take a hike. One of XCode's coolest features just upped and vanished on the latest project. Shows fine in the previous two. Can't find anything that looks like an on/off switch for the thing and have capabilities and debug settings matched to the ones that work. (and yes, I am in debug mode)
Replies
1
Boosts
0
Views
610
Activity
Jul ’24
Opening up Siri prefs from an app
In our onboarding sequence we inform the user that Siri is required and to set it up if they have it off. We have a link that takes us to the root of the Systems tree, but have been unable to get it to launch into the Siri prefs itself, using a scheme that's widely available on StackOverflow, GitHub and so on. ChatGPT says it can't be done as of 2022. I see a list on GitHub of the domains that was last updated just a year ago, suggesting that at least as of 17 it "should" work. Another place said Apple would bounce apps which attempt to do that (we have the recommended URL string already in there which should have been detectable by their scans, and have not been bounced due to that so far).
Replies
1
Boosts
0
Views
608
Activity
Sep ’24
User falsely shown as unsubscribed
I am using the standard SwiftUI component for subscription management, and on one device it is showing the user as unsubscribed when their sub is still in service. The subscribe button is active but inert, doesn't do anything. Ideas?
Replies
1
Boosts
0
Views
145
Activity
Mar ’25
ApplePay deferred payments
Is there a way to allow ApplePay to make deferred payments to a suite of stores, or will each store need the user to initially approve a payment manually?
Replies
1
Boosts
0
Views
74
Activity
Oct ’25
Is there a way to suppress Siri's "Something went wrong"
I'm working with appIntents and custom responses with Siri. Sometimes I get the "Something went wrong..." message seemingly at random. There is a way to suppress it in a shortcut using its scripting language, but is there anything in Sirikit that could in effect, tell it to knock it off!, and suppress that message. Or, is there a way, when generating a Shortcut in appIntents that allows for generating a small script as well?
Replies
2
Boosts
0
Views
371
Activity
Aug ’24
Dynamically generating AppShortcut phrases
I want to be able to dynamically update the phrase dictionary in an AppShortcut. However, whenever I abstract the phrases, the shortcut fails to display. That is, I am trying to do: static var phrases: [AppShortcutPhrase<MyIntent>] = ["\(.applicationName) hello world"] AppShortcut( intent: MyIntent(), phrases: phrases, shortTitle: "hello world", systemImageName: "" ) However, the following works: AppShortcut( intent: MyIntent(), phrases: "\(.applicationName) hello world", shortTitle: "hello world", systemImageName: "" ) So, what gives?
Topic: UI Frameworks SubTopic: General
Replies
2
Boosts
0
Views
435
Activity
Feb ’25