
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 🙌