Skip to content

Repository files navigation

Build StatusGitterGitterCocoaPods

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
classViewController:VideoSplashViewController{overridefunc viewDidLoad(){
super.viewDidLoad()leturl=NSURL.fileURLWithPath(NSBundle.mainBundle().pathForResource("test", ofType:"mp4")!)self.videoFrame = view.frame
self.fillMode =.ResizeAspectFill
self.alwaysRepeat =trueself.sound =trueself.startTime =12.0self.duration =4.0self.alpha =0.7self.backgroundColor =UIColor.blackColor()self.contentURL = url
self.restartForeground =true}}

Authors

Omer Karisman

Lead UI/UX @ MojiLaLa
TwitterDribbleGithub
Sahin Boydas

Co-Founder @ MojiLaLa
LinkedIn

About

VideoSplashKit - UIViewController library for creating easy intro pages with background videos

Resources

Stars

1.2k stars

Watchers

48 watching

Forks

Releases

Packages

Used by

Contributors

Languages