rive-app/rive-ios

Rive doesn't work for the share extension

Opened this issue · 1 comments

Description

RiveRuntime 3.1.4 doesn't support share extension.

Provide a Repro

This code works fine in the app, however renders red square for the share extension.

struct SharView: View {
    
    @ObservedObject var viewModel: RiveViewModel
    
    var body: some View {
        HStack {
            viewModel.view()
                .frame(width: 100, height: 100)

        }
    }
}

Source .riv/.rev file

Tried to use animation from rive-ios example repos.

Device & Versions (please complete the following information)

  • Device: [iOS Simulator, iPhone XR, iPhone 12]
  • iOS version [iOS 16]

Hi @KirillIvonchikDev thank you for raising this. I'm certainly no expert on the share extension, do you have an example app that uses rive with share extension?

Presumably we are talking about this functionality? https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Share.html