jasudev / LottieUI

Lottie for SwiftUI. It is a library developed to make Lottie easy to implement. It supports iOS and macOS.
MIT License
106 stars 15 forks source link

Cannot infer contextual base in reference to member 'loop' #6

Closed jacobtimm closed 1 year ago

jacobtimm commented 1 year ago

I get this error when running this code

struct WaveView: View { @State var isPlaying: Bool = true

var body: some View {
    LottieView("wave")
        .play(isPlaying)
        .loopMode(.loop) //Cannot infer contextual base in reference to member 'loop'

}

}

jasudev commented 1 year ago

I think you're confusing it with another library. This library only controls via environment variables, so it doesn't control via modifiers. Please see the example app. Thank you.