Lupi
One-line configuration video background for iOS project, written in Swift.
Features
- One line of code to make it work
- Handled device rotation by default
Usage
import Lupi
class ViewController: UIViewController {
var videoBackgrounView: LupiVideoBackgroundView?
override func viewDidLoad() {
super.viewDidLoad()
videoBackgrounView = try? LupiVideoBackgroundView(fileName: "beach", in: view)
}
}By default, audio is muted. Pass
isMuted: falsein initializer if you want to turn it on.
Installation
CocoaPods
Lupi is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'Lupi', :git => 'https://github.com/weitieda/lupi.git'Swift Package Manager (Xcode 11+)
In Xcode 11, select File -> Swift Packages -> Add Package Dependency, enter Lupi's repo URL https://github.com/weitieda/lupi. Or you can login Xcode with your GitHub account and just type Lupi to search.
Author
License
Lupi is released under an MIT License. See LICENSE for details.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


