Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue Animation work fine in preview but not working on iOS code #325

Open
Spatel91111 opened this issue May 28, 2024 · 0 comments

Comments

@Spatel91111
Copy link

I have one "riv" file and it's working fine on https://rive.app/preview/ but on iOS swift code it's not working

I have add code as below

import UIKit
import RiveRuntime

class ViewController: UIViewController {

let riveModel = RiveViewModel(fileName: "loading_loop", autoPlay: true)

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    let riveView = self.riveModel.createRiveView()
    self.view.addSubview(riveView)
    riveView.frame = self.view.bounds
}

}

For library
Install latest SPM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant