SSSwiftUIVideoPlayerLayer is a custom controller which helps to load video in SwiftUI.
To run the example project, clone the repo, and run pod install from the Example directory first.
- iOS 13.0+
- Xcode 11+
SSSwiftUIVideoLayerView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SSSwiftUIVideoLayerView'-
Import framework
import SSSwiftUIVideoLayerView -
Load Video with SwiftUIVideoLayerView function
SwiftUIVideoLayerView(videoName: "VideoName", videoType: "mp4")
SSSwiftUIVideoLayerView is available under the MIT license. See the LICENSE file for more info.
