u/Dr_swifter

I built an iOS tool to detect oversized media assets during development

I built an iOS tool to detect oversized media assets during development

Hey everyone 👋

I built a lightweight iOS tool called MediaSizeWatchdog.

The idea came from a common issue I kept seeing in real projects:
backend/CMS uploads huge images or videos, the app technically works, but performance slowly gets worse.

Examples:

  • 15MB marketing banners
  • uncompressed feed images
  • large GIFs/videos silently loaded in production
  • increased memory/network usage without anyone noticing

So I made a debug tool that observes media responses and warns developers when assets exceed a configurable threshold.

Features:

  • URLSession monitoring
  • configurable size limits
  • debug alerts
  • adapter-based architecture
  • lightweight setup
  • works well for feed/CMS-heavy apps

Example:

MediaSizeWatchdog.shared.configure(
    threshold: .mb(5)
)

MediaSizeWatchdog.shared.start()

Would love feedback, ideas, or suggestions from other iOS developers 🙌

GitHub:
https://github.com/aykhanhajiyev/media-size-watchdog

u/Dr_swifter — 9 days ago
▲ 3 r/iosdev+1 crossposts

I built an iOS tool to detect oversized media assets during development

https://preview.redd.it/a9wi0v3rsp0h1.png?width=1598&format=png&auto=webp&s=7cd37b10a5ddae91fd2ccdf5feb828050cafd57a

Hey everyone 👋

I built a lightweight iOS tool called MediaSizeWatchdog.

The idea came from a common issue I kept seeing in real projects:
backend/CMS uploads huge images or videos, the app technically works, but performance slowly gets worse.

Examples:

  • 15MB marketing banners
  • uncompressed feed images
  • large GIFs/videos silently loaded in production
  • increased memory/network usage without anyone noticing

So I made a debug tool that observes media responses and warns developers when assets exceed a configurable threshold.

Features:

  • URLSession monitoring
  • configurable size limits
  • debug alerts
  • adapter-based architecture
  • lightweight setup
  • works well for feed/CMS-heavy apps

Example:

MediaSizeWatchdog.shared.configure(
    threshold: .mb(5)
)

MediaSizeWatchdog.shared.start()

Would love feedback, ideas, or suggestions from other iOS developers 🙌

GitHub:
https://github.com/aykhanhajiyev/media-size-watchdog

reddit.com
u/Dr_swifter — 9 days ago