{"id":2181,"url":"https://github.com/dingwilson/SwiftVideoBackground","last_synced_at":"2025-08-06T16:32:37.885Z","repository":{"id":44351043,"uuid":"69287879","full_name":"dingwilson/SwiftVideoBackground","owner":"dingwilson","description":"📹 Framework to Play a Video in the Background of any UIView","archived":false,"fork":false,"pushed_at":"2021-06-12T01:30:52.000Z","size":40609,"stargazers_count":347,"open_issues_count":10,"forks_count":53,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-12-07T08:50:25.041Z","etag":null,"topics":["background","background-video","ios","swift","ui","uiview","video","video-background"],"latest_commit_sha":null,"homepage":"https://wilsonding.com/SwiftVideoBackground","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/dingwilson.png","metadata":{"files":{"readme":"README-0.06.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-26T20:00:57.000Z","updated_at":"2024-10-23T05:40:38.000Z","dependencies_parsed_at":"2022-08-30T00:50:20.096Z","dependency_job_id":null,"html_url":"https://github.com/dingwilson/SwiftVideoBackground","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingwilson%2FSwiftVideoBackground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingwilson%2FSwiftVideoBackground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingwilson%2FSwiftVideoBackground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dingwilson%2FSwiftVideoBackground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dingwilson","download_url":"https://codeload.github.com/dingwilson/SwiftVideoBackground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923770,"owners_count":17992575,"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":["background","background-video","ios","swift","ui","uiview","video","video-background"],"created_at":"2024-01-05T20:16:06.812Z","updated_at":"2024-12-09T16:31:23.971Z","avatar_url":"https://github.com/dingwilson.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Assets/banner.png\" width=\"780\" title=\"SwiftVideoBackground\"\u003e\n\u003c/p\u003e\n\n[![CocoaPods Version Status](https://img.shields.io/cocoapods/v/SwiftVideoBackground.svg)][podLink]\n[![Carthage compatible](https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods](https://img.shields.io/cocoapods/dt/SwiftVideoBackground.svg)](https://cocoapods.org/pods/SwiftVideoBackground)\n[![CocoaPods](https://img.shields.io/cocoapods/dm/SwiftVideoBackground.svg)](https://cocoapods.org/pods/SwiftVideoBackground)\n![Platform](https://img.shields.io/badge/platforms-iOS-333333.svg)\n[![Swift](https://img.shields.io/badge/Swift-3.0+-orange.svg)](https://swift.org)\n[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)][mitLink]\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"Assets/Spotify.gif\" width=\"369\" title=\"Screenshot\"\u003e\n\u003c/p\u003e\n\nSwiftVideoBackground is an easy to use Swift framework that provides the ability to add a UIView of a video playing in the background to any ViewController. This provides a beautiful UI for login screens, or splash pages, as implemented by Spotify and many others.\n\n1. [Requirements](#requirements)\n2. [Integration](#integration)\n    - [Cocoapods](#cocoapods)\n    - [Carthage](#carthage)\n    - [Manually](#manually)\n3. [Usage](#usage)\n4. [License](#license)\n\n## Requirements\n\n- Swift 3+\n- iOS 8+\n\n## Integration\n\n#### CocoaPods\nYou can use [CocoaPods](https://cocoapods.org/) to install `SwiftVideoBackground` by adding it to your `Podfile`:\n\nFor Swift 3:\n```ruby\n\tpod 'SwiftVideoBackground', '0.06'\n```\n\n#### Carthage\nYou can use [Carthage](https://github.com/Carthage/Carthage) to install `SwiftVideoBackground` by adding it to your `Cartfile`:\n```\ngithub \"dingwilson/SwiftVideoBackground\"\n```\n\n#### Manually\n\nTo use this library in your project manually you may:  \n\n1. for Projects, just drag BackgroundVideo.swift to the project tree\n2. for Workspaces, include the whole SwiftVideoBackground.xcodeproj\n\n## Usage\n\nImport the framework into the ViewController\n```swift\nimport SwiftVideoBackground\n```\n\nLink a UIView within a ViewController within the Storyboard to a BackgroundVideo item, or link it programmatically.\n```swift\nvar backgroundVideo : BackgroundVideo!\n```\n\nUse the `createBackgroundVideo` function, with the name of the video or gif under `name`, and the file type under `type`. You can also include an alpha value between 0 and 1 under `alpha`, to adjust the brightness of the video.\n```swift\nbackgroundVideo.createBackgroundVideo(name: \"Background\", type: \"mp4\")\n```\n```swift\nbackgroundVideo.createBackgroundVideo(name: \"Background\", type: \"mp4\", alpha: 0.5)\n```\n\nNote: Make sure you have added a video file to the project, and targeted the project. Also, make sure that you have set the module to `SwiftVideoBackground` for the BackgroundVideo UIView.\n\n## License\n\n`SwiftVideoBackground` is released under an [MIT License][mitLink]. See `LICENSE` for details.\n\n**Copyright \u0026copy; 2016-present Wilson Ding.**\n\n*Please provide attribution, it is greatly appreciated.*\n\n[podLink]:https://cocoapods.org/pods/SwiftVideoBackground\n[mitLink]:https://opensource.org/licenses/MIT\n","funding_links":[],"categories":["Libs","UI","Video [🔝](#readme)"],"sub_categories":["Video","Other free courses","Font","Other Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdingwilson%2FSwiftVideoBackground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdingwilson%2FSwiftVideoBackground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdingwilson%2FSwiftVideoBackground/lists"}