Skip to content

Instantly share code, notes, and snippets.

@shaps80
Last active December 3, 2022 15:36
Show Gist options
  • Save shaps80/8ee53f7e3f07e3cf44f2331775edff98 to your computer and use it in GitHub Desktop.
Save shaps80/8ee53f7e3f07e3cf44f2331775edff98 to your computer and use it in GitHub Desktop.
A complete SwiftUI UIActivityViewController implementation.

Moved

This is now available in a dedicated package: ActivityView

Alternatively my SwiftUI Backports now includes a more complete implementation of ShareLink that's also more performant.

@shaps80
Copy link
Author

shaps80 commented Sep 7, 2021

@chbeer @skywalkerlw @lahariganti @JetForMe

Just to let you know I'm now officially supporting this (and many other) SwiftUI views via a dedicated organisation, SwiftUI+.

If you can create any Issues on the new repo then I can respond and track them appropriately. I will respond much more quickly and can help you more effectively.

Also note, the API has some improvements and more improvements are on the way.

In terms of performance Activity controller's do take a second to start and even longer in DEBUG builds, so if you run on device, then stop the debugger. Re-run the app from the icon on your device and re-test that way (as a user would) and I think you'll find the speed of the presentation is far better.

That being said, there are other things you may can do to improve, namely implementing the LinkPresentation APIs if you can, since those load asynchronously (alongside the presentation itself). But please create Issues on the new repo to continue this conversation if needed, as I will no longer be checking them here.

Thanks.

Shaps

@JetForMe
Copy link

JetForMe commented Sep 8, 2021

That's great, thanks!

@shaps80
Copy link
Author

shaps80 commented Sep 9, 2021

👍

@shaps80
Copy link
Author

shaps80 commented Oct 3, 2022

My new library, SwiftUI Backports now includes a more complete implementation of ShareLink that's also more performant.

This will be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment