I'm experiencing the same problem. For now I'm able to work around it by delaying the presentation of the sharelink.
Something like this:
struct ContentView: View {
@State var showShareLink = false
var body: some View {
HStack {
if showShareLink {
ShareLink()
} else {
Image(systemName: "square.and.arrow.up")
Text("Export")
}
}
.onAppear() {
Timer.scheduledTimer(withTimeInterval: 1, repeats: false) { _ in
self.showShareLink = true
}
}
}
}