{"id":19998041,"url":"https://github.com/furqanmk/miva","last_synced_at":"2026-05-12T18:04:48.247Z","repository":{"id":62447843,"uuid":"91399327","full_name":"furqanmk/Miva","owner":"furqanmk","description":"A Swift Download Library","archived":false,"fork":false,"pushed_at":"2018-02-27T10:59:26.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T18:03:23.122Z","etag":null,"topics":["cocoapods","download-manager","ios","json","miva","swift"],"latest_commit_sha":null,"homepage":null,"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/furqanmk.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}},"created_at":"2017-05-16T01:12:34.000Z","updated_at":"2018-11-01T17:03:44.000Z","dependencies_parsed_at":"2022-11-01T23:17:37.206Z","dependency_job_id":null,"html_url":"https://github.com/furqanmk/Miva","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furqanmk%2FMiva","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furqanmk%2FMiva/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furqanmk%2FMiva/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furqanmk%2FMiva/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furqanmk","download_url":"https://codeload.github.com/furqanmk/Miva/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241435159,"owners_count":19962407,"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":["cocoapods","download-manager","ios","json","miva","swift"],"created_at":"2024-11-13T05:07:06.778Z","updated_at":"2026-05-12T18:04:43.192Z","avatar_url":"https://github.com/furqanmk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Miva\n##### A Swift Download Library\n\nMiva is a networking image library that fetches, caches, and displays images, JSON, files via HTTP in Swift.\n\n## Features\n\n- In-memory caching.\n- Nonblocking IO. All HTTP and disk IO happen in the background.\n- Completely Generic.\n- Simple one method UIImageView to load a remote image.\n- Robust, fast, and customizable.\n- Simple concise codebase.\n- handles redundant image requests, so only one request is sent for multiple queries\n\n## Example\n\nFirst thing is to import the framework.\n\n```swift\nimport Miva\n```\n\nOnce imported, you can start requesting images.\n\n```swift\n//you can simply call the URL string on your UIImageView\nlet imageUrl = \"https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png\"\nlet imageView = UIImageView(frame: CGRectMake(0, 60, 200, 200))\nself.imageView.setImage(url: imageUrl)\n\n//fetch the image using the image manager\nMivaImageManager.shared.fetch(url: url,\n  progress: { (part) in\n    //update your progress bars\n  }, success: { (image) in\n    //use your image\n  }, failure: { (error) in\n    //handle the error\n  })\n```\n\n## Downloading JSON using Miva\nTake advantage of the Generic nature of the library\n```swift\nMivaRequest\u003cJSON\u003e(path: \"https://pastebin.com/raw/wgkJgazE\",\n    progress: { (part) in\n        //update your progress bars\n    }, success: { (json) in\n        //use your json\n    }, failure: { (error) in\n        //handle the error\n})\n```\n\n## Cancel Request\nFetch requests can be cancelled when needed. This simply causes the closures not to be called.\n```swift\nrequest.cancel()\n```\n\n## Requirements\n\nRequires at least iOS 8 or above.\n\n## Installation\n\n#### CocoaPods\n\nMiva requires CocoaPods 1.1.x or higher.\n\nMiva is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```\npod 'Miva'\n```\n\n## TODOs\n- Class and method documentation\n- Improve design pattern\n- Write test cases\n\n## License\n\nMiva is licensed under MIT Open source license.\n\n## Contact\n\n### Furqan Muhammad Khan\n* https://github.com/furqanmk\n* http://twitter.com/furqanmk9\n* http://behance.net/furqanmk\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurqanmk%2Fmiva","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurqanmk%2Fmiva","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurqanmk%2Fmiva/lists"}