Fix deprecated check error

This commit is contained in:
世界
2026-04-23 08:12:53 +08:00
parent d833ab870f
commit 8480bc3bb6
2 changed files with 16 additions and 22 deletions
@@ -182,20 +182,20 @@ public struct TailscalePeerView: View {
}
Spacer()
#if !os(tvOS)
Button {
copyToClipboard(address)
} label: {
if copiedAddress == address {
Image(systemName: "checkmark")
.foregroundStyle(.secondary)
} else {
Image(systemName: "doc.on.doc")
.foregroundStyle(.blue)
Button {
copyToClipboard(address)
} label: {
if copiedAddress == address {
Image(systemName: "checkmark")
.foregroundStyle(.secondary)
} else {
Image(systemName: "doc.on.doc")
.foregroundStyle(.blue)
}
}
}
#if os(macOS)
.buttonStyle(.plain)
#endif
#if os(macOS)
.buttonStyle(.plain)
#endif
#endif
}
}