{"id":13485394,"url":"https://github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView","last_synced_at":"2025-03-27T19:31:09.019Z","repository":{"id":40631595,"uuid":"232299807","full_name":"SimformSolutionsPvtLtd/SSSwiftUIGIFView","owner":"SimformSolutionsPvtLtd","description":"SSSwiftUIGIFView is a custom controller designed to help load GIFs in SwiftUI. It supports loading GIFs from remote URLs, is compatible with both iOS and macOS, and implements a caching mechanism to improve loading times and reduce data usage.","archived":false,"fork":false,"pushed_at":"2024-07-01T12:36:21.000Z","size":54107,"stargazers_count":91,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-19T18:11:18.546Z","etag":null,"topics":["gif","gifanimation","gifview","ios","swiftui","swiftui-components"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView","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/SimformSolutionsPvtLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-01-07T10:23:54.000Z","updated_at":"2025-02-19T05:36:56.000Z","dependencies_parsed_at":"2024-06-21T13:02:09.486Z","dependency_job_id":"b191d4e9-4c73-45c1-8d48-2a22edf84499","html_url":"https://github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView","commit_stats":null,"previous_names":["simformsolutions/ssswiftuigifview"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSSwiftUIGIFView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSSwiftUIGIFView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSSwiftUIGIFView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSSwiftUIGIFView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910753,"owners_count":20692497,"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":["gif","gifanimation","gifview","ios","swiftui","swiftui-components"],"created_at":"2024-07-31T18:00:21.519Z","updated_at":"2025-03-27T19:31:07.302Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","funding_links":[],"categories":["iOS Guides","iOS"],"sub_categories":["SwiftUI"],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"SSSwiftUIGIFView.gif\" width=\"100%\" height=\"100%\"/\u003e\n\u003c/p\u003e\n\n# SSSwiftUIGIFView\n\n![Swift Package Index](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView%2Fbadge%3Ftype%3Dswift-versions)\n![Swift Package Index](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView%2Fbadge%3Ftype%3Dplatforms)\n![SPM Compatible-badge](https://img.shields.io/badge/Swift_Package_Manager-compatible-coolgreen)\n[![Version](https://img.shields.io/cocoapods/v/SSSwiftUIGIFView.svg?style=flat)](https://cocoapods.org/pods/SSSwiftUIGIFView)\n[![License](https://img.shields.io/cocoapods/l/SSSwiftUIGIFView.svg?style=flat)](https://cocoapods.org/pods/SSSwiftUIGIFView)\n[![PRs Welcome][PR-image]][PR-url]\n[![Twitter](https://img.shields.io/badge/Twitter-@simform-blue.svg?style=flat)](https://twitter.com/simform)\n\nSSSwiftUIGIFView is a custom controller designed to help load GIFs in SwiftUI. It supports loading GIFs from remote URLs, is compatible with both iOS and macOS, and implements a caching mechanism to improve loading times and reduce data usage. Additionally, it provides both a default progress view and support for custom progress views while loading the GIF.\n\n## Features\n\n- [x] Support for loading local GIFs and GIFs from remote URLs\n- [x] Cache mechanism support\n- [x] Cross-platform compatibility (iOS \u0026 macOS)\n- [x] Custom and default progress view support\n\n## Requirements\n  - iOS 14.0+\n  - MacOS 13.0+\n  - Xcode 11+\n\n## Installation\n **CocoaPods**\n\nSSSwiftUIGIFView is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SSSwiftUIGIFView'\n```\n\n**Swift Package Manager**\n\nWhen using Xcode 11 or later, you can install `SSSwiftUIGIFView` by going to your Project settings \u003e `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` \u003e `Add Package Dependencies...`\n\n         dependencies: [\n             .package(url: \"https://github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView.git\", from: \"2.0.0\")\n         ]\n         \n**Manually**\n\n1. Add `GIFCache.swift`, `GIFImageViewModel.swift`, `GIFPlayerView.swift` and `SwiftUIGIFPlayerView.swift` to your project.\n2. Grab yourself a cold 🍺.\n\n## Documentation\n\n[Documentation](https://swiftpackageindex.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView/master/documentation/ssswiftuigifview) - Find the full API reference for more detailed documentation.\n\n## Usage example\n-\n    **Import framework**\n\n        import SSSwiftUIGIFView\n   \n-\n    **Load GIF with SwiftUIGIFPlayerView function**\n      \n        SwiftUIGIFPlayerView(gifName: \"Gif Name\")\n\n-        \n    **Load GIF URL with SwiftUIGIFPlayerView function**\n      \n        SwiftUIGIFPlayerView(gifURL: gifURL) // Here the gifURL is a link to a GIF.\n-        \n    **If we want to show the default progress bar while loading a GIF**\n    \n        // Default value for isShowProgressView is false \n        \n        SwiftUIGIFPlayerView(gifURL: gifURL, isShowProgressView: true)\n        \n-        \n    **If we want to show a custom progress bar while loading a GIF**\n            \n        SwiftUIGIFPlayerView(gifURL: gifURL) {\n            //Custom Progress bar view\n        }\n    \n\u003cbr\u003e \u003c/br\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"demo.gif\" width=\"40%\" height=\"40%\"/\u003e\n\u003c/p\u003e\n\u003cbr\u003e \u003c/br\u003e\n\n## How to Contribute 🤝 \n\nWhether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! :muscle:\nCheck out our [**Contributing Guide**](CONTRIBUTING.md) for ideas on contributing.\n\n## Find this example useful? ❤️\n\nSupport it by joining [stargazers](https://github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView/stargazers) :star: for this repository.\n\n## Bugs and Feedback\n\nFor bugs, feature feature requests, and discussion use [GitHub Issues](https://github.com/SimformSolutionsPvtLtd/SSSwiftUIGIFView/issues).\n\n\n## Check out our other Libraries\n\n\u003ch3\u003e\u003ca href=\"https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries\"\u003e\u003cu\u003e🗂 Simform Solutions Libraries→\u003c/u\u003e\u003c/a\u003e\u003c/h3\u003e\n\n\n## MIT License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n[PR-image]:https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\n[PR-url]:http://makeapullrequest.com\n[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg\n[swift-url]: https://swift.org/\n[Swift Compatibility-badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView%2Fbadge%3Ftype%3Dswift-versions\n[Platform Compatibility-badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView%2Fbadge%3Ftype%3Dplatforms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSSwiftUIGIFView/lists"}