Post

Replies

Boosts

Views

Activity

Reply to Unable to install iOS & watchOS app to iPhone, because of intents change
This is what I have in the various "Supported Intents" sections of the targets... Main App: Okay, so the Main App supports the two intents. WidgetIntentHandler: The WidgetIntentHandler supports only the WidgetEventIntent. Watch App: The Watch App (which contains the Complications and ComplicationsIntentHandler targets) supports just the ComplicationEventIntent. ComplicationsIntentHandler: And the ComplicationsIntentHandler only supports the ComplicationEventIntent. What am I doing wrong? I've told the Main App that there are two intents. I've told the WidgetIntentHandler to support only the widget intent, and the ComplicationsIntentHandler to only support the complications intent. There are no other places to set up "Supported Intents". If only Xcode could be a help rather than a hinderance... Anyone at Apple reading our pleas for help?
Oct ’22
Reply to Why overlay is not on top
I think your problem is in the .padding(8) line. When you have that padding it adds 8px to all four external sides of the Text label, making it too small to fit the text on one line. You can achieve your desired look by reducing the font size, too, but that's probably not of much use. I've just put this into a new project, and Xcode is showing the preview in an iPhone 14 Pro (or Max) where the result is perfectly fine, because that device is quite wide. I've added .frame(width 380) to the ScrollView so it can be seen on a smaller screen. I've given the various elements a background colour so you can see where they interact: struct ContentView: View {     var body: some View { ScrollView { LazyVGrid(columns: [GridItem(.flexible()), GridItem(.flexible())]) { Stat() Stat() Stat() Stat() } } .frame(width: 380)  // Change this to simulate smaller devices } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } struct Stat: View { var body: some View { VStack { Text("One Case Per People") .frame(maxWidth: .infinity, alignment: .leading) .font(.system(size: 19)) .background(Color.red) Text("2") .frame(maxWidth: .infinity, alignment: .leading) .font(.system(size: 15)) .background(Color.green) Spacer() } // .padding(8)  // If you use this padding instead of the below two lines you can see your problem .padding(.top, 8) .padding([.leading, .trailing], 3) .frame(minHeight: 100) .cornerRadius(8) .background(Color.blue) .overlay( Image(systemName: "person.3.fill") .resizable() .frame(width: 60, height: 40, alignment: .trailing). // I reduced the height to 40 here, as 60 seems too tall for this symbol .padding(8) .background(Color.yellow) , alignment: .bottomTrailing ) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Reply to Unable to install iOS & watchOS app to iPhone, because of intents change
More info: When trying to deploy to an iPhone I get: This app contains a WatchKit app with one or more Siri Intents app extensions that declare IntentsSupported that are not declared in any of the companion app's Siri Intents app extensions. WatchKit Siri Intents extensions' IntentsSupported values must be a subset of the companion app's Siri Intents extensions' IntentsSupported values. And to the iPhone Simulator: Failure Reason: Please try again later. Recovery Suggestion: Siri Intents in the WatchKit app com.abc.xyz.watchkitapp are not a subset of the Siri Intents in the companion app com.abc.xyz. But they absolutely, 100% definitely are! The watchkitapp has the ComplicationEventIntent, and the main app has the ComplicationEventIntent and the WidgetEventIntent, so ComplicationEventIntent is a subset of ComplicationEventIntent & WidgetEventIntent. Seriously, Xcode is a piece of trash.
Oct ’22
Reply to APPLE I PHONE 12 QUERIES
So? Why did you tag this post with "APFS"? You do realise these are the Developer Forums for developers to talk about and get help with code, right? How about you speak to the developer of the app that you want to use and see why it's not available?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22
Reply to [Swift Charts] custom LineMark symbol is transparent
I hope I've understood this right, here goes... Change the .symbol's Circle colour to .blue and turn off the symbol's shadow (just comment the line out for now). Notice how the blue circles are partially transparent? There is no setting you've applied in your code that makes them transparent, so this has to be a built-in behaviour of the Chart. Even if you add an .opacity(1.0) to the .symbol that's just going to apply 100% of the current opacity value, so if the Chart is setting it to, say, 0.8, then 1.0 * 0.8 is still 0.8. If you change the new opacity value for the Circle to 0.1, your blue line is still displayed. Change the colour to red, and change the opacity to 0.1, 0.2, 0.3 etc. 0.1: 0.3: 0.5: 0.9: In every case, the line remains drawn, but if you zoom in on the line under the circle when your opacity is 0.9 you can see that the blue line is half-disappearing. 1.0: At 1.0 the line has disappeared but the circle is still partially transparent. What I think is happening is that your use of white with a shadow and no explicit opacity is hiding the built-in effects of the Chart. I'd suggest playing around with the colours and opacities and find something that works for you. If you use blue, you're applying a blue circle over the top of a blue line so the line is going to be more visible. Personally, I've just tried a bunch of settings and blue with 0.5 opactity looks good to me:
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’22
Reply to Unable to install iOS & watchOS app to iPhone, because of intents change
Further info: I can deploy the Watch app to both the Watch Simulator and my physical device, so the Watch app itself is fine. I understand the error that says the Watch intents are not a subset of the iOS app's intents is because it's trying to deploy both the iOS app and the Watch app, but the intents are set up correctly, AFAICS. The only places where I can set "Supported Intents" are in the Main app target, the WidgetIntentHandler target, the Watch app target, and the ComplicationsIntentHandler. There's nowhere else to set them, and they're correct (see previous images). What's the solution here?! Can someone please help? Where's the Eskimo guy?
Oct ’22
Reply to How should I name an app which is about a big corporation without doing anything against rules?
Very carefully. You cannot use someone else's trademarks in your app at all, because they are not yours. You could extend your app to have nutritional values for multiple such companies, so Subway, McDonald's, KFC etc., and call it the "Nutritional Meals" app, but you cannot say, "this is the McDonald's Meals Nutritional Values app".
Oct ’22
Reply to App Store
You'll have better luck asking this question in the Apple Support Forums that are run by Apple Support. These are the Developer Forums where developers chat about their code and how to accomplish things in code. It's not the right place for product support questions.
Oct ’22
Reply to Build Error due o info.plist
Go to your project target and click on the "Build Settings" tab at the top. In the search box on the right, search for "info". Anything in there with "info" in it will be shown. It's possible your info.plist file is in the wrong place, so you can either move it in the file system to where the settings thinks it should be, or change the settings to point at the correct location.
Oct ’22
Reply to Widgets on Ventura 13.0 freeze
You'll have better luck asking this question in the Apple Support Forums that are run by Apple Support. These are the Developer Forums where developers chat about their code and how to accomplish things in code. It's not the right place for product support questions.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22
Reply to Unable to install iOS & watchOS app to iPhone, because of intents change
I've tried absolutely everything I can think of. Can't get it to work. I actually think there's a bug here in Xcode because the two extensions inside the iOS app have the correct intents, and the iOS app itself has both of them but Xcode errors every time. It's like Xcode doesn't allow more than one intent in the entire project, which is just bonkers. So, I've re-jigged the app and I'm now using only one intent that's shared between the intents, but although I can deploy to the Simulator and physical devices again, it still fails when validating an archive: Intents Extension Issue. The intent "DynamicEventSelectionIntent" is in multiple intents extensions, but it can only be in one. I've raised a bug. And I've given up.
Oct ’22