Skip to content

SSSwiftUIVideoPlayerLayer is a custom controller which helps to load video in SwiftUI.

License

Notifications You must be signed in to change notification settings

SimformSolutionsPvtLtd/SSSwiftUIVideoLayerView

Repository files navigation

SSSwiftUIVideoLayerView

SSSwiftUIVideoPlayerLayer is a custom controller which helps to load video in SwiftUI.

Version License Platform

Alt text

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.