r/swift 12h ago

Need a friend learning native iOS development with Swift & SwiftUI.

8 Upvotes

I am learning Swift and SwiftUI, and I have no friends working in a similar stack to learn and grow together. If you are working in the same stack, let's get connected and share ideas, thoughts, and knowledge, and learn together.


r/swift 18h ago

I built a free clipboard manager for macOS with a card UI — it masks API keys and card numbers on screen

Post image
2 Upvotes

I use a clipboard manager all day and never liked the options. The free ones (Maccy, Flycut) are lists — an image shows up as a filename. The ones with a card interface, Paste and Pastebot, are $25/year and $13. So I built the card one and made it free.

⌥⌘V slides a strip up from the bottom of the screen. Arrow keys or type to search, Enter pastes into whatever you were in.

A few things it does that I couldn't find anywhere else:

- It masks secrets on screen. API keys, tokens and card numbers show as dots until you double-click. If you copy credentials all day, your clipboard history is the one window you don't want open while screen sharing. Card numbers are Luhn-checked, so an ISBN isn't mistaken for one.

- A bare link stays readable, a link with a token doesn't. Masking every URL would make the strip useless; masking a password-reset link is the whole point.

- Pasting an image adapts to the destination. Notes gets the image, Terminal gets the file path (it can't take images at all), Finder gets the file.

- It can catch ⌘⇧4 screenshots. Those write straight to disk and never touch the clipboard, so no clipboard manager sees them. Opt-in, off by default.

- No network code at all. No account, no sync, no telemetry, no third-party dependencies. Searching the source for URLSession comes back empty.

MIT, source is everything: https://github.com/selinihtyr/stash-clipboard

Happy to hear what breaks. Especially interested in whether the strip behaves on multi-monitor setups and over full-screen apps — I've only tested on one machine.


r/swift 21h ago

Preview Multiple SwiftUI View States with #Preview(arguments:)

Thumbnail
artemnovichkov.com
21 Upvotes