I create View and defined size to view And created Outlet to it picture one
After code my animate ignores size of View and located by itself. And I need locate animation inside View, but I don't have more ideas.
My code for animation:
func lottieAnimation() {
let animationView = AnimationView(name: "japan")
animationView.center = self.view.center
animationView.contentMode = .scaleAspectFit
animationView.frame = self.view.bounds
view.addSubview(animationView)
animationView.play()
animationView.loopMode = .loop
}
Can you help me?