{"id":26519253,"url":"https://github.com/mustafos/lazy-load-img","last_synced_at":"2026-05-13T07:32:09.604Z","repository":{"id":241659323,"uuid":"807360491","full_name":"mustafos/lazy-load-img","owner":"mustafos","description":"The application fetches image data from a remote JSON file, displays a loading indicator while fetching, and uses lazy loading to only load images as they come into view. It includes error handling with a retry mechanism","archived":false,"fork":false,"pushed_at":"2024-09-12T12:57:51.000Z","size":2192,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-13T00:36:57.751Z","etag":null,"topics":["async-await","concurrency","grandcentraldispatch","json-api","restful-api","swift","swiftui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mustafos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-29T00:36:27.000Z","updated_at":"2024-09-12T12:58:29.000Z","dependencies_parsed_at":"2024-05-29T14:55:03.633Z","dependency_job_id":"1193e7c3-2da2-442b-969d-1d59f94675ac","html_url":"https://github.com/mustafos/lazy-load-img","commit_stats":null,"previous_names":["mustafos/lazy-load-img"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafos%2Flazy-load-img","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafos%2Flazy-load-img/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafos%2Flazy-load-img/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafos%2Flazy-load-img/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustafos","download_url":"https://codeload.github.com/mustafos/lazy-load-img/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244783193,"owners_count":20509909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async-await","concurrency","grandcentraldispatch","json-api","restful-api","swift","swiftui"],"created_at":"2025-03-21T10:47:10.448Z","updated_at":"2026-05-13T07:32:09.599Z","avatar_url":"https://github.com/mustafos.png","language":"Swift","funding_links":[],"categories":["By Language"],"sub_categories":["Swift"],"readme":"# 🐾 Catstagram\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/mustafos/lazy-load-img/blob/master/Preview.png\" alt=\"Lazy Load Gallery\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n## ✨ Features\n\n- **📸 Mixed Media Feed**: Supports photos, videos, and mixed posts with horizontal paging.\n- **▶️ Smart Video Playback**: Videos auto-play when visible and pause when off-screen.\n- **❤️ Like with Animation**: Double-tap to like with smooth heartbeat animation + haptics.\n- **🗂️ Caching \u0026 Preheating**: Images downsampled and preheated, videos pooled for reuse.\n- **🎨 Modern UI**: Card-style posts, custom header, floating action button with gradient.\n- **☀️ Light Mode Only**: Clean, consistent design locked to light appearance.\n\n## Installation\n\n1. **Clone the repository:**\n```bash\ngit clone https://github.com/mustafos/lazy-load-img.git\ncd lazy-load-img\n```\n\n2. **Open the project in Xcode:**\n```bash\nopen lazy-load-img.xcodeproj\n```\n\n3. **Run the application:**\n- Select a simulator or real device.\n- Press `Cmd + R` or hit the ▶️ Run button.\n\n## 📂 Project Structure\n\n- `LazyLoadGalleryApp.swift` — app entry point, audio session + scene management.\n- `FeedView.swift` — main scrollable feed.\n- `PostCell.swift` — single post UI (header, media, actions, caption).\n- `MediaPagerView.swift` — horizontal pager for mixed photo + video posts.\n- `PlayerPool.swift` — AVPlayer pool for smooth video reuse.\n- `ImageLoader.swift` — downsampled image loading with caching.\n- `AppTheme.swift` — shared colors, shadows, and layout constants.\n\n## 🎮 Usage\n\n- Scroll the feed to view posts.\n- Photos display instantly with lazy downsampled loading.\n- Videos auto-play when at least 25% visible.\n- Double-tap a photo or video to like it — ❤️ animates with a beat.\n- Toggle sound with the mute button in the corner.\n\n## 🤝 Contribution\n\nPull requests are welcome!\nFor big changes, open an issue first to discuss what you’d like to add.\n\n## 📜 License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/mustafos/lazy-load-img/blob/master/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafos%2Flazy-load-img","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustafos%2Flazy-load-img","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafos%2Flazy-load-img/lists"}