Post

Replies

Boosts

Views

Activity

Reply to iOS Share Extension Warning: Passing argument of non-sendable type outside of main actor-isolated context may introduce data races
I can't provide you with a full, completely working solution, but this doesn't cause any errors: class ShareViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() } override func loadView() { super.loadView() if let inputItem = extensionContext!.inputItems.first as? NSExtensionItem { if let itemProvider = inputItem.attachments?.first { itemProvider.loadItem(forTypeIdentifier: UTType.url.identifier as String) { [unowned self] (item, error) in let contentView = ShareView(extensionContext: extensionContext, url: item as! URL) DispatchQueue.main.async { let hostingView = UIHostingController(rootView: contentView) hostingView.view.frame = self.view.frame self.view.addSubview(hostingView.view) } } } } } } struct ShareView: View { var extensionContext: NSExtensionContext? var url: URL var body: some View { VStack{} .task{ await extractItems() } } func extractItems() async { try await downloadAndSaveMedia(reelURL: url.absoluteString) extensionContext?.completeRequest(returningItems: []) } } In your code you get all the attachments here: if let itemProviders = (extensionContext?.inputItems.first as? NSExtensionItem)?.attachments { and you send that array of NSItemProvider to ShareView(), but you then get just the first attachment here (first line of extractItems()): guard let itemProvider = itemProviders.first else { return }, so in my code I'm just using the first attachment. The distinction is that I do all that stuff in the loadView() method rather than in ShareView(). Might work for you, might not, but I don't think you've tried this. You can probably tidy it up a little.
30m
Reply to EU distribution
You need to confirm whether you're a trader under the EU's Digital Service Act (DSA) rules. Traders are those who make any money from their apps in the EU, i.e. paid apps, or free ones with in-app purchases. If you don't make any money from your apps, then you are not a trader and can confirm that you aren't. That would be all you need to do. There should be an option in App Store Connect to confirm your status. If you are a trader, you need to provide an address, email and phone number. But please note, those details will be displayed on your App Store pages so everyone in the EU can see them.
3h
Reply to UITextView crash on iOS 18.4 beta
You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums. You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.
14h
Reply to New emoji size is too big!
Well, thanks for popping onto the Developer Forums and sharing your rant. But, you're in the wrong place. The Developer Forums are for developers of apps for Apple's platforms to talk about, and ask for help with their code. We aren't Apple employees. We're random people from around the world. If you have a suggestion, you can raise it here: https://feedbackassistant.apple.com/ If you just want to rant, you should probably do it on one of the Mac forums.
23h
Reply to Ongoing Device Setup ios 18.4 beta
You wiped and restored your iPhone. When you backup an iPhone it doesn't save indexes and caches, so when you restore from a backup the iPhone has to recreate those caches and indexes. I honestly don't understand why people think a few operations on their iPhone are going to kill their battery. Just let it do what it needs to do. If you have an issue with the betas possibly using up battery, don't install the betas, especially not on your primary device. Install it on a secondary device, or not at all.
1d
Reply to Family downtime crash
These are the Developer Forums, where developers of apps for Apple's platforms ask each other for hints and tips on coding. Your question is more of a product support one, so I'd suggest you ask it over at the Apple Support Forums. Thanks. If you feel that it's a bug, you can raise it here: https://feedbackassistant.apple.com/
2d