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