Skip to content
VideoSplashKit - UIViewController library for creating easy intro pages with background videos
Branch: master
Clone or download
okaris Update README.md
Add Swift4 usage
Latest commit 05b0d7f Dec 21, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
VideoSplashKit.xcodeproj Added swift 3 support Sep 27, 2016
VideoSplashKit Updated for CocoaPods support Sep 24, 2017
VideoSplashKitTests [Rename] VideoSplashKit Dec 30, 2015
.gitignore Ignore .DS_Store Sep 24, 2017
.travis.yml Add project folders Aug 5, 2015
CHANGELOG.md Update CHANGELOG Dec 30, 2015
LICENSE Initial commit Aug 5, 2015
README.md Update README.md Dec 20, 2017
VideoSplashKit.podspec 1.2.1 Oct 18, 2017

README.md

Build Status Gitter Gitter CocoaPods

VideoSplashKit - Video based UIViewController

alt tag

Introduction

Requires iOS 8 or later and Xcode 6.1+
Swift support uses dynamic frameworks and is therefore only supported on iOS > 8.

Installation

To install via CocoaPods add this line to your Podfile.

use_frameworks!

and

pod 'VideoSplashKit'

or if you are using Swift4

pod 'VideoSplashKit', :git => 'https://github.com/svtek/VideoSplashKit/VideoSplashKit.git', :branch => 'swift4'

Then, run the following command:

$ pod install

Usage

import VideoSplashKit

class ViewController: VideoSplashViewController {

  override func viewDidLoad() {
    super.viewDidLoad()
    let url = NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("test", ofType: "mp4")!)
    self.videoFrame = view.frame
    self.fillMode = .ResizeAspectFill
    self.alwaysRepeat = true
    self.sound = true
    self.startTime = 12.0
    self.duration = 4.0
    self.alpha = 0.7
    self.backgroundColor = UIColor.blackColor()
    self.contentURL = url
    self.restartForeground = true
  }
}

Authors

Omer Karisman

Lead UI/UX @ MojiLaLa
Twitter Dribble Github
Sahin Boydas

Co-Founder @ MojiLaLa
LinkedIn
You can’t perform that action at this time.