To run the example project, clone the repo, and run pod install
from the Example directory first.
FaceTimeView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FaceTimeView"
Add FaceTimeView.swift
file into your project.
import FaceTimeView
import UIKit
import FaceTimeView
// Start live effect using front camera
startLiveFor(type: .frontCamera, blurStyle: .light)
// Start live effect using back camera
startLiveFor(type: .backCamera)
// Start live effect using gif image
let path = Bundle.main.path(forResource: "giphy", ofType: "gif")
let gifURL = URL(fileURLWithPath: path!)
startLiveFor(type: .gif(gifURL))
// Start live effect using videos
let path1 = Bundle.main.path(forResource: "v1", ofType: "mp4")
let videoURL1 = URL(fileURLWithPath: path1!)
let path2 = Bundle.main.path(forResource: "v2", ofType: "mp4")
let videoURL2 = URL(fileURLWithPath: path2!)
let path3 = Bundle.main.path(forResource: "v3", ofType: "mp4")
let videoURL3 = URL(fileURLWithPath: path3!)
startLiveFor(type: .video([videoURL1,videoURL2,videoURL3]))
Feel free to raise issue and pull requests accepted to imrove this library.
erbittuu , erbittuu@gmail.com
FaceTimeView is available under the MIT license. See the LICENSE file for more info.