carbon-app / carbon

:black_heart: Create and share beautiful images of your source code
https://carbon.now.sh
MIT License
34.67k stars 1.91k forks source link

Copy image to clipboard doesn't work in Orion, Safari, Webkit variants #1467

Open nickradford opened 1 year ago

nickradford commented 1 year ago

Describe the bug Trying to copy an image to the clipboard fails in Orion Browser (and other Webkit variants)

To Reproduce Steps to reproduce the behavior:

  1. Open Carbon
  2. Select "Copy Image to Clipboard"
  3. Try to paste image where images are paste-able (e.g. Twitter, Github, Slack)
  4. No image data is in the clipboard.

Expected behavior An image should be copied to the clipboard

Screenshots If applicable, add screenshots to help explain your problem.

Info (please complete the following information):

Code snippet
  
Button(action: {
    handleSignIn()
}, label: {
    ZStack {
        Text("Sign in")
            .opacity(isLoading ? 0 : 1)
        ProgressView()
            .scaleEffect(0.4)
            .opacity(isLoading ? 1 : 0)
    }
})
  
nicolaiarocci commented 1 year ago

On Safari, I'm having the same issue.