Post

Replies

Boosts

Views

Activity

Comment on BackgroudColor of UINavigationBarAppearance() does not work in iOS15.
I'm not sure Rincewind's answer is particularly helpful. If it was possible to customise the appearance of an "out of process UI" such as the image picker before, why can't we do it now? Why isn't it "guaranteed" to support our customisations? We prepare the appearance before we show the picker, so it should just work. That it doesn't suggests this is particularly flaky Apple code. I have an image picker that works perfectly well in iOS 14, but once you use iOS 15, it's a very light grey background with white text for the Cancel button. It looks horrible because you can barely see the button, and I can't seem to get any appearance customisations to apply to it, so it's going to look rubbish to my users. I don't think Rincewind's answer helps anyone?
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’21
Comment on Widget is crashing with 1: EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=30 MB, unused=0x0)
My app allows users to take a photo and attach it to an item, so the photo itself can be huge. For Widgets and the Watch app I resize those images to whatever size is needed, then send those to the Widget/Watch. I never send the full-size image. It looks like you're sending a full-size image, then simply telling the view to resize it to 46px x 46px. Resize the image and save it as a new file before sending it to the extension.
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Comment on watchOS `transferFile`
If you're only sending files from the iOS app to the Watch app you'll only have the conditional check in the iOS app to stop you sending files if you're in the Simulator. The Watch app would never hit the func session(_ session: WCSession, didReceive file: WCSessionFile) method if you're using the Simulator. If you're sending files both ways, then yes you'd need a conditional in both targets.
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Comment on WatchOS9 - Widgetkit complications do not appear on simulator
In Apple's video he makes it look as though the code being used for the Lock Screen widgets is the same code that's being used on the Watch. I tried that, but just couldn't get it to work, and an Apple engineer told me the complications code goes in the Watch app. So, the video is misleading. I think they were simply showing us what it looks like in a Watch preview. You can share code between targets if you set their target membership correctly. I have shared code, constants, views etc.
Topic: App & System Services SubTopic: General Tags:
Sep ’22
Comment on BackgroudColor of UINavigationBarAppearance() does not work in iOS15.
I'm not sure Rincewind's answer is particularly helpful. If it was possible to customise the appearance of an "out of process UI" such as the image picker before, why can't we do it now? Why isn't it "guaranteed" to support our customisations? We prepare the appearance before we show the picker, so it should just work. That it doesn't suggests this is particularly flaky Apple code. I have an image picker that works perfectly well in iOS 14, but once you use iOS 15, it's a very light grey background with white text for the Cancel button. It looks horrible because you can barely see the button, and I can't seem to get any appearance customisations to apply to it, so it's going to look rubbish to my users. I don't think Rincewind's answer helps anyone?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Widget is crashing with 1: EXC_RESOURCE RESOURCE_TYPE_MEMORY (limit=30 MB, unused=0x0)
My app allows users to take a photo and attach it to an item, so the photo itself can be huge. For Widgets and the Watch app I resize those images to whatever size is needed, then send those to the Widget/Watch. I never send the full-size image. It looks like you're sending a full-size image, then simply telling the view to resize it to 46px x 46px. Resize the image and save it as a new file before sending it to the extension.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on watchOS `transferFile`
If you're only sending files from the iOS app to the Watch app you'll only have the conditional check in the iOS app to stop you sending files if you're in the Simulator. The Watch app would never hit the func session(_ session: WCSession, didReceive file: WCSessionFile) method if you're using the Simulator. If you're sending files both ways, then yes you'd need a conditional in both targets.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on Disappointed in AirPods Pro
I can't explain why your tags changed, but what exactly does that have to do with anything? These are the Developer Forums. If you want support for your devices go to the appropriate place. If you want to moan, do it on one of the rumour sites.
Replies
Boosts
Views
Activity
Sep ’22
Comment on UIImage (named : ""\(UserDefaults.standard.string(forKey: "value") ?? "")") doesn't match
Yeah, I was thinking that, too. They're literally asking for an image named "(UserDefaults...)".
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on WatchOS9 - Widgetkit complications do not appear on simulator
In Apple's video he makes it look as though the code being used for the Lock Screen widgets is the same code that's being used on the Watch. I tried that, but just couldn't get it to work, and an Apple engineer told me the complications code goes in the Watch app. So, the video is misleading. I think they were simply showing us what it looks like in a Watch preview. You can share code between targets if you set their target membership correctly. I have shared code, constants, views etc.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on Remove/change circular clipping shape for Lock Screen widget of type .accessoryCircular
Sorry, there's no "but" here. The widget is of the family .accessoryCircular. Just because it shows a square behind it, doesn't mean it's going to draw it as a square.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on Project doesn't archive, complains about architecture
Yeah, "lol"... :roll eyes: If you select a simulator target such as "iPhone 14 Pro Max", the "Archive" option is disabled. That's where I got it from.
Replies
Boosts
Views
Activity
Sep ’22
Comment on Previews won't load and/or black background screen
Okay... Did you try the fix I mentioned?
Replies
Boosts
Views
Activity
Sep ’22
Comment on redacted(reason: .privacy) not working as expected
Have you tried it? I've given you a solution that definitely works for me. It's not difficult for you to implement it in your own app and see whether it works in all your use cases. Give it a go. If it doesn't work, you've lost nothing, but perhaps it just needs a few small tweaks to work in your situation?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Comment on iOS16 Widget Lock Screen show sensitive information even if .privacySensitive() is set
This is likely a developer question, given they mentioned .privacySensitive.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on MagSafe
Your question is quite clearly not meant for the developers of apps on Apple's operating systems. Ask your product support question elsewhere.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on Release an app only for ipad and later release for both
Shouldn't be any issues. I had an iPhone-only app which I then added iPad support to.
Replies
Boosts
Views
Activity
Oct ’22
Comment on Required screenshots for iOS16 ONLY app
Probably a typo. The iPhone 8 Plus is 1242 x 2208 (not 2088), which is 414 x 736 @3x.
Replies
Boosts
Views
Activity
Oct ’22
Comment on Unable to install app in My Devices. A valid provisioning profile for this executable was not found
Mark this as answered.
Replies
Boosts
Views
Activity
Oct ’22