dotlottie / dotlottie-ios Goto Github PK
View Code? Open in Web Editor NEWAn iOS library to natively render .lottie files
Home Page: https://dotlottie.io/
License: MIT License
An iOS library to natively render .lottie files
Home Page: https://dotlottie.io/
License: MIT License
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)
}
}
What's wrong: swift compiler error after installing dotlottie-ios (pls see issue title)
How to reproduce: install dotlottie through pagackage manager. Try to build
Hi! I wan't able to use dotlottie-ios due to above issue. Looks like the minimum iOS (macOS and tvOS as well) version shall be updated in package platforms.
Can you please support latest version of lottie library.
Lottie change min iOS version to iOS11 in 3.3.0, so using this package now build fails, because it only target iOS9.
Hi. This error appears after calling 'pod install'.
Unable to find a specification for dotLottieLoader (~> 0.1.0)
depended upon by dotLottie
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.
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")
}
}
}
iOS sample app screenshot
Screenshot for when we use our lottie file, some background resources are not showing
screenshot for result what we expect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.