r/swift • • 21h ago

News I built Snitch, an open-source in-app inspector for network requests and analytics events (PostHog, AppsFlyer)

0 Upvotes

Hey r/swift,

For the past few weeks I've been working on a side project and wanted to share it here for feedback.

Snitch is a debugging tool you add to your iOS app. It shows every network request and every analytics event your app sends, right on the device. Shake the phone (or tap a floating button) and you get a timeline you can search and filter.

Why I built it: at work I kept asking "did that analytics event actually go out, and what was in it?" Answering that meant print statements, setting up a proxy, or staring at gzipped and encrypted payloads.

What it does:

- Captures URLSession traffic via URLProtocol, with headers, pretty-printed JSON bodies, search and filters
- Works with your own URLSessions and keeps their settings, so cookies, caching and SSL pinning still behave normally (auth challenges are forwarded to your session's delegate)
- PostHog events through its beforeSend hook, and each event links to the batch request that uploaded it (Snitch unzips the gzip body and matches event IDs)
- AppsFlyer events with zero code changes: it finds the SDK at runtime and wraps its public logEvent methods, so there's no AppsFlyer dependency
- Copy as cURL, pause recording, light and dark mode, Liquid Glass on iOS 26 with a fallback to iOS 16
- Debug-only: every call is a no-op without DEBUG, and nothing leaves the device

The core has zero third-party dependencies. Setup is one line: Snitch.start()

GitHub: https://github.com/BachoOnn/snitch

I also shared the story behind it on LinkedIn, with a few slides showing it in action:
Linkedin post

It's still early, so I'd really appreciate feedback, bug reports, or ideas for which SDK to support next (Firebase? Mixpanel?). Happy to answer questions about how any of it works.


r/swift • • 20h ago

Question App testing in Testflight or App Store

1 Upvotes

Getting ready to release my first iOS app and will be looking for people willing to test it.

Generally do I ask them to test using TestFlight or do I need to have it on the APP store?

I will expect some bugs and feedback so I am prefer using TestFlight.

Comments or suggestions are appreciated.


r/swift • • 20h ago

Project Modification to Swift 6.4.1

0 Upvotes

Hello everyone.

i made Xwift, a cross-platform toolchain for the swift language based on swift 6.4.1.

you write the code once and the same source builds native apps for macos, linux and windows, plus webassembly for the web.

installers are out now for all three.

baiehclaca.github.io/xwift-web


r/swift • • 4h ago

Project High school student building my first macOS app would anyone actually use this?

3 Upvotes

Hey everyone!

I'm a high school student currently working on my first ever app, called Due Ahead, built using Swift and SwiftUI.

The idea came from a problem I kept running into at school. Assessments and homework were scattered across student portals, emails, PDFs and random announcements, which made it pretty difficult to keep track of everything, especially when multiple assessments were due around the same time.

So I decided to try building something to solve it myself!

What I've built so far:

  • A weekly timeline showing upcoming assessments and deadlines.
  • Workload tracking based on estimated completion times.
  • Subject organisation to keep everything in one place.
  • Reminders for overdue and upcoming tasks.
  • A notes feature for quickly writing things down during class.
  • On-device AI summaries to help organise messy or rushed notes.
  • Local storage so everything works offline.

I'm developing the macOS version first, with the possibility of bringing it to iOS later.

A little about the development:

I've been using SwiftUI to build the interface and Apple's native frameworks wherever possible. One of my main goals is to make the app feel like it actually belongs on macOS rather than being a website wrapped in a desktop window.

It's still in beta, and I've got plenty to learn, but seeing something I built actually running as a native Mac app has been pretty exciting!

I'm mainly posting because I'd love to hear from other Swift developers.

A few things I'm curious about:

  1. Does the interface look and feel like a native macOS app?
  2. Are there any SwiftUI design or development practices you'd recommend for someone building their first app?
  3. Is there anything about the UI or feature set you'd approach differently?

I'm not looking to promote or sell anything here. I'm just interested in learning from more experienced developers and improving what I've built.

Any feedback, including criticism, would be really appreciated!

here are some photos of the app

![img](994n1fwu4i2i1)

![img](99slhruv4i2i1)

![img](iocn9joy4i2i1)

Thanks for reading :)


r/swift • • 16h ago

Tutorial Choosing a DB is More Nuanced Than You Think

Thumbnail
medium.com
0 Upvotes

r/swift • • 17h ago

Some tips for the Swift Student Challenge 2027

2 Upvotes

I am taking part in this years challenge where the size limit is 500 mb. One thing that i wanted to ask is that should the judged be able to understand the core idea of our the project/ 4pp(reddit is stupid) in under 3 minutes or that they should be able to visit every inch of the 4pp within 3 minutes. My 4pps core idea could be understood in 3 minutes but visiting every inch of the 4pp, that might not be possible. Any suggestions would help a lot. any other tips for the challenge as a whole from experienced participants, winners or distinguished winner would be even more help ! thanks
Just a question how much AI is okay and how much is just not because in 2026 AI can make better things than someone who started learning siwft 3 months ago(me)