r/iOSProgramming • u/Icy_Clock9170 • Jun 27 '26
App Saturday Title: [App Saturday] I built Aquarium Widgets - A live virtual aquarium on your Home Screen 🐠
Hey!
I’d like to share an app I’ve been working on called Aquarium Widgets (https://www.aquariumwidgets.app/). It lets users build, manage, and care for virtual aquariums right from their iOS Home Screen. You can unlock different fish, track their growth, and watch them live in your widgets.
Here are the details of the project:
Tech Stack
- SwiftUI: For the main app interface and building the widget views.
- WidgetKit: The core framework for rendering the live aquariums on the Home Screen.
- SwiftData / CoreData: For local storage, keeping track of fish stats, levels, and user collections.
Development Challenge
The biggest hurdle by far was animating components within the widget.
As anyone who has worked with WidgetKit knows, Apple is incredibly strict about continuous animations to preserve battery life. Standard withAnimation loops don't work the same way they do in the main app. I wanted the fish to actually feel "alive" (moving naturally, bubbles rising) rather than just updating a static image every 15 minutes.
How I solved it: I had to get very creative with how TimelineProvider handles updates and utilize offset transitions. I built a system that calculates slight positional offsets for the fish and bubbles between timeline entries, relying on system-allowed transitions to create a smooth, battery-efficient illusion of continuous movement. Balancing the refresh budget so iOS wouldn't freeze the widget was a massive trial-and-error process.
🤖 AI Disclosure
This app is primarily self-built by me. However, I used AI to assist with some of the more complex features and underlying logic. Specifically, I leaned on AI to help figure out the math and structural logic for the widget animations and to optimize the timeline refresh cycles without hitting Apple's limits.
I’d love to hear your feedback or answer any questions you might have about dealing with WidgetKit's animation constraints! Thanks for checking it out.


