Coder Social home page Coder Social logo

dotlottie-ios's People

Contributors

eharrison avatar jawish avatar leonardo-ferreira07 avatar samuelosborne avatar whit3hawks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotlottie-ios's Issues

SwiftUI DotLottieView not found

I am trying to follow your ReadMe doc to SwiftUI and DotLottieView but keep getting an error: Cannot find 'DotLottieView' in scope.
I tried searching the files and haven't found anything called DotLottieView.

My Code:

struct LottieView: View {

    // MARK: - Properties

    @State var name: String
    @State var play: Int = 1
    var completion: ((Bool) -> ())? = nil

    // MARK: - UI

    var body: some View {
        DotLottieView(name: name, play: self.$play, onCompleted: completion)
    }
}

Wrong resolved issue

Lottie change min iOS version to iOS11 in 3.3.0, so using this package now build fails, because it only target iOS9.

Not found dotLottieLoader

Hi. This error appears after calling 'pod install'.
Unable to find a specification for dotLottieLoader (~> 0.1.0) depended upon by dotLottie

Latest release of (dotlottieLoader-ios 0.2.1) broke (dotLottie 0.1.9)

My Project that use the "dotLottie v0.1.9" isn't working anymore after the latest release of "dotLottieLoader v0.2.1".

Not sure exactly if is there anything that I can do on my end to fix it TBH, I did try manually add the old version of dotLottierLoader v0.2.0 into my SwiftPackageManager but the dependency is still there into the original "dotLottie" and at end my package has 2 version of the "dotLottieLoader".

About my Environment:
Current Packages that I'm using into my SwiftPackageManger from Lottie are:
"Lottie" Exact Version: 3.3.0
"doLottie" Exact Version 0.1.9.
Building Using latest Xcode: 15.1.
MacbookAir M2.

This is the error that I have locally:
image

.lottie file is not showing all the contents in animation

Hello,

i downloaded the sample .lottie file (animation-external-image.lottie & animation-inline-image.lottie) from :(https://dotlottie.io/structure/#sample-dotlottie-files) and used in my sample iOS project but its not working as expected. even though its not working in your sample iOS project. Same thing happened with our own .lottie file.

iOS Code is as below

@IBOutlet weak var animationView: AnimationView!
override func viewDidLoad() {
super.viewDidLoad()
DotLottie.load(name: "animation-inline-image") { (animation) in
if let animation = animation {
self.animationView.animation = animation
self.animationView.loopMode = .loop
self.animationView.play()
} else {
print("Error loading .lottie")
}
}
}

issue : Not able to see 2020 text with gradients ribbon please see below screenshot highlighted with red arrow.

Screenshot 2021-02-08 at 11 54 42 AM

iOS sample app screenshot

Simulator Screen Shot - iPhone 12 Pro - 2021-02-08 at 12 32 19

Screenshot for when we use our lottie file, some background resources are not showing

Simulator Screen Shot - iPhone 11 Pro - 2021-02-08 at 12 53 34

screenshot for result what we expect

Simulator Screen Shot - iPhone 11 Pro - 2021-02-08 at 12 49 55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.