Latest 0.1
Homepage https://github.com/tiagomartinho/cover-uikit
License MIT
Platforms ios 10.0, tvos 10.0
Frameworks Foundation
Authors

An easy way to add background videos in loop to your login screen

Demo

Cover

Requirements

  • Swift 4.1 or higher
  • iOS 10.0 or higher
  • tvOS 10.0 or higher

Features

  • Supports iOS and tvOS
  • 3 lines of code to integrate in your app
  • +/- 100 lines of Swift code

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate Webhose into your Xcode project using CocoaPods, add to your Podfile:

pod 'Cover', '0.1'

Then, run the following command:

$ pod install

Sample

We provide a sample app where you can see how to use the library.

There are three lines of code you need to add:

1. Import the Framework

import Cover

2. Declare a reference to the player in your View Controller

var player: Player?

3. Instantiate and add the player to the view in your viewDidLoad method

override func viewDidLoad() {
    super.viewDidLoad()
    player = view.add(videoName: "Video.mp4", alpha: 0.5)
}

The videoName is the name of the video that you have included in your app target.

Latest podspec

{
    "name": "Cover",
    "version": "0.1",
    "summary": "Cover",
    "description": "An easy way to add background videos in loop to your login screen",
    "homepage": "https://github.com/tiagomartinho/cover-uikit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Tiago Martinho": "[email protected]"
    },
    "social_media_url": "",
    "platforms": {
        "ios": "10.0",
        "tvos": "10.0"
    },
    "source": {
        "git": "https://github.com/tiagomartinho/cover-uikit.git",
        "tag": "0.1"
    },
    "source_files": "Sources/**/*",
    "frameworks": "Foundation",
    "swift_version": "4.1"
}

Pin It on Pinterest

Share This