LoopPlayerView(resourceName: "swipe")
Strategy | Description | Default |
---|---|---|
resourceName | Name of the video to play | - |
extention | Video extension | "mp4" |
errorText | Error message text | "Resource is not found" |
videoGravity | A structure that defines how a layer displays a playerβs visual content within the layerβs bounds | .resizeAspect |
errorTextSize | Size of the error text | 17.0 |
SwiftUI loop video player example
-
You need to have Xcode 13 installed in order to have access to Documentation Compiler (DocC)
-
Go to Product > Build Documentation or ββ§β D
- At the current time XCode 15 is in beta and in the console you might see message "A structure that defines how a layer displays a playerβs visual content within the layerβs bounds" I found on Stack-overflow that many came across this message and at the time it is treated like XCode 15 beta bug