{"id":13485368,"url":"https://github.com/SimformSolutionsPvtLtd/SSMediaLibrary","last_synced_at":"2025-03-27T19:31:00.036Z","repository":{"id":52151793,"uuid":"386524435","full_name":"SimformSolutionsPvtLtd/SSMediaLibrary","owner":"SimformSolutionsPvtLtd","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-18T07:49:01.000Z","size":5443,"stargazers_count":39,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T02:45:21.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimformSolutionsPvtLtd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-16T05:48:37.000Z","updated_at":"2024-09-06T11:33:48.000Z","dependencies_parsed_at":"2022-09-09T01:41:03.218Z","dependency_job_id":null,"html_url":"https://github.com/SimformSolutionsPvtLtd/SSMediaLibrary","commit_stats":null,"previous_names":["mobile-simformsolutions/ssmedialibrary"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSMediaLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSMediaLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSMediaLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimformSolutionsPvtLtd%2FSSMediaLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimformSolutionsPvtLtd","download_url":"https://codeload.github.com/SimformSolutionsPvtLtd/SSMediaLibrary/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910735,"owners_count":20692495,"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":[],"created_at":"2024-07-31T18:00:20.876Z","updated_at":"2025-03-27T19:30:59.519Z","avatar_url":"https://github.com/SimformSolutionsPvtLtd.png","language":"Swift","funding_links":[],"categories":["iOS","iOS Guides"],"sub_categories":["Swift"],"readme":"\u003ca href=\"https://www.simform.com/\"\u003e\u003cimg src=\"https://github.com/SimformSolutionsPvtLtd/SSToastMessage/blob/master/simformBanner.png\"\u003e\u003c/a\u003e\n\nSSMediaLibrary\n=============\n[![CocoaPods Version](https://img.shields.io/cocoapods/v/SSMediaLibrary.svg)](http://cocoadocs.org/docsets/SSMediaLibrary)\n[![Platform](https://img.shields.io/cocoapods/p/SSMediaLibrary.svg?style=flat)](http://cocoapods.org/pods/SSMediaLibrary)\n[![License](https://img.shields.io/cocoapods/l/SSMediaLibrary.svg?style=flat)](https://cocoapods.org/pods/SSMediaLibrary)\n[![Swift Version][swift-image]][swift-url]\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\nSSMediaLibrary is written in Swift with the use of Combine framework. It will download and open up following files:\n* iWork documents\n* Microsoft Office documents (Office ‘97 and newer)\n* Rich Text Format (RTF) documents\n* PDF files\n* Images\n* Text files whose uniform type identifier (UTI) conforms to the public.text type\n* Comma-separated value (csv) files\n* Video\n* Any URL\n\n\u003ccenter\u003e\u003cimg src=\"/SSMediaLibraryExample.gif\" height=\"500\"/\u003e\u003c/center\u003e\n\nSetup Instructions\n------------------\n[CocoaPods](http://cocoapods.org)\n------------------\nTo integrate SSMediaLibrary into your Xcode project using CocoaPods, specify it in your `Podfile`:\n```ruby\npod 'SSMediaLibrary', '~\u003e 1.0.0'\n```\nand in your code add `import SSMediaLibrary`.\n\n[Swift Package Manager](https://swift.org/package-manager/)\n------------------\nWhen using Xcode 11 or later, you can install `SSMediaLibrary` 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 `Swift Packages` \u003e `Add Package Dependencies...`\n\n## Manually\n\n1. Add `MediaManager.swift`, `NetworkManager.swift` and `UTI.swift` to your project.\n2. Grab yourself a cold 🍺.\n\n## Requirements\n* iOS 13+\n* Xcode 11+\n\n# Usage\n1. Just provide URL to the MediaManager\n2. Call the show function of MediaManager\n\nBasic Examples\n---------\n```swift\nguard let url = URL(string: \"http://www.africau.edu/images/default/sample.pdf\") else { return }\nlet manager = MediaManager(url: url)\nmanager.show()\n\nguard let url = URL(string: \"https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg\") else { return }\nlet manager = MediaManager(url: url)\nmanager.show()\n\nguard let url = URL(string: \"https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mov-file.mov\") else { return }\nlet manager = MediaManager(url: url)\nmanager.show()\n```\n# To-Do\n* Show file downloading progress\n* Support for other file\n\n\u003ch3\u003e\u003ca href=\"https://github.com/SimformSolutionsPvtLtd\"\u003e\u003cu\u003e🗂 Check out our other libraries→\u003c/u\u003e\u003c/a\u003e\u003c/h3\u003e\n\n\n## MIT License\n\nCopyright (c) 2021 Simform Solutions\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSMediaLibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSimformSolutionsPvtLtd%2FSSMediaLibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSimformSolutionsPvtLtd%2FSSMediaLibrary/lists"}