rive-app / rive-ios

iOS runtime for Rive
MIT License
468 stars 53 forks source link

Rive doesn't work for the share extension #241

Open KirillIvonchikDev opened 1 year ago

KirillIvonchikDev commented 1 year ago

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)

mjtalbot commented 1 year ago

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