LottieViewFor
@MainActor
struct LottieViewFor : UIViewRepresentable
This view is to show the animation for lotti files
-
Animation file name
Declaration
Swift
@MainActor var filename: URL
-
Loop mode for animation
Declaration
Swift
@MainActor let loopMode: LottieLoopMode
-
Width of the animation
Declaration
Swift
@MainActor var width: CGFloat
-
Height of the animation
Declaration
Swift
@MainActor var height: CGFloat
-
Creates the UI view for animation
Declaration
Swift
@MainActor 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
@MainActor func updateUIView(_ uiView: UIViewType, context: Context)