Replace Share URL with Share URL as QR Code

This commit is contained in:
世界
2024-01-14 20:32:12 +08:00
parent 74465cad0c
commit 5fb2fd3498
4 changed files with 112 additions and 22 deletions
@@ -1,3 +1,4 @@
import Libbox
import Library
import SwiftUI
@@ -14,6 +15,8 @@ public struct EditProfileView: View {
@State private var isLoading = false
@State private var isChanged = false
@State private var alert: Alert?
@State private var shareLinkPresented = false
@State private var shareLinkText: String?
public init() {}
public var body: some View {
@@ -72,16 +75,6 @@ public struct EditProfileView: View {
} label: {
Text("View Content").foregroundColor(.accentColor)
}
ProfileShareButton($alert, profile) {
Text("Share")
}
#endif
#if os(iOS) || os(macOS)
ShareButtonCompat($alert) {
Text("Share URL")
} itemURL: {
profile.shareLink
}
#endif
Button("Update") {
isLoading = true