LottieViewFor
struct LottieViewFor : UIViewRepresentable
This view is to show the animation for lotti files
-
Animation file name
Declaration
Swift
var filename: URL
-
Loop mode for animation
Declaration
Swift
let loopMode: LottieLoopMode
-
Width of the animation
Declaration
Swift
var width: CGFloat
-
Height of the animation
Declaration
Swift
var height: CGFloat
-
Creates the UI view for animation
Declaration
Swift
func makeUIView(context: Context) -> some UIView
Parameters
context
The context of the view
Return Value
The created UI view
-
Updates the UI view
- uiView: The UI view to update
- context: The context of the view
Declaration
Swift
func updateUIView(_ uiView: UIViewType, context: Context)