One-line configuration video background for iOS project, written in Swift.
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: false
in initializer if you want to turn it on.
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'
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.
Lupi
is released under an MIT License. See LICENSE for details.
link |
Stars: 24 |
Last commit: 3 years ago |
Add a new initializer for remote URL
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics