Skip to content

Screenshots, hung out to dry. A tiny native macOS app that hangs every screenshot on a line at the top of your screen.

Swift

The corner shows an eye when it only hides the photo

Alejandro Buján1a2a021a29b2
diff --git a/Sources/Tendedero/PeggedView.swift b/Sources/Tendedero/PeggedView.swift
index d0df646..3de7c7f 100644
--- a/Sources/Tendedero/PeggedView.swift
+++ b/Sources/Tendedero/PeggedView.swift
@@ -85,8 +85,10 @@ struct PeggedView: View {
.animation(pressed ? .easeInOut(duration: 0.45) : .spring(response: 0.3, dampingFraction: 0.6), value: pressed)
.opacity(dragging ? 0.45 : 1)
.overlay(alignment: .topLeading) {
- // Drawn here, clicked through GrabView, which sits on top.
- Image(systemName: "xmark")
+ // Drawn here, clicked through GrabView, which sits on top. A
+ // cross sends a file in Tendedero's folder to the Trash; for a
+ // file anywhere else it only hides it from the line.
+ Image(systemName: line.isInInbox(item.id) ? "xmark" : "eye.slash")
.font(.system(size: 8, weight: .bold))
.foregroundStyle(.primary)
.frame(width: 20, height: 20)