Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Share/save/export/drag-drop image #10

Open
jackpal opened this issue Oct 16, 2022 · 2 comments
Open

Feature request: Share/save/export/drag-drop image #10

jackpal opened this issue Oct 16, 2022 · 2 comments

Comments

@jackpal
Copy link

jackpal commented Oct 16, 2022

This app works great, and as soon as I saw it generate an image, I wanted to share it. It's pretty easy to hook up SwiftUI share sheets by using ShareLink:
https://www.hackingwithswift.com/quick-start/swiftui/how-to-let-users-share-content-using-the-system-share-sheet

@madebyollin
Copy link
Owner

Good idea! I added tap-to-share on iOS using ShareLink like you suggested. I couldn't find an easy way to add image export on macOS (ShareLink seemingly isn't supported in Monterey?) so I've ifdef'd it as iOS-only for now. If you know of a good way to share CGimages on macOS without introducing a bunch of extra code, lmk :)

@jackpal
Copy link
Author

jackpal commented Oct 16, 2022

Thanks!! On macOS maybe saving to the clipboard would be the easiest way to support exporting. I haven't tried it, but this thread seems promising: https://developer.apple.com/forums/thread/115198

noeleont added a commit to noeleont/maple-diffusion that referenced this issue Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants