Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

iOS support? #3

Open
kentcb opened this issue May 23, 2018 · 19 comments
Open

iOS support? #3

kentcb opened this issue May 23, 2018 · 19 comments

Comments

@kentcb
Copy link

kentcb commented May 23, 2018

Hi,

This is more a query than an issue. I noticed that the README specifically states that iOS isn't yet supported, but it doesn't make it clear whether iOS support is planned/will be added.

Can you elaborate please?

Thanks

@simolus3
Copy link
Owner

Thanks for your interest. The plugin doesn't support iOS because I don't have any experience with iOS development and I don't have access to a Mac which would be required to add support for it. Thus, iOS support is unlikely to be implemented soon, sorry.

@jlouage
Copy link

jlouage commented May 24, 2018

I will take a look to the code and i will try to implement the iOS part

@simolus3
Copy link
Owner

Great, thank you for considering to do this, I really appreciate it 👍
If you need any clarifications on the internal methods / platform channels, please let me know where I can improve the documentation.

@threeseed
Copy link

I will also be looking into this as well. Really need it :)

@threeseed
Copy link

Making excellent progress on this. The animations are appearing on the iPhone.

So expect a pull request in the next couple of days 👍

@threeseed
Copy link

Thought I would give a status update since it's been an interesting adventure.

So I am new to Flutter and wasn't aware that there was no way to really mix/match iOS UIView with Flutter Texture. It was at one point on their list but due to the complexity has been largely dropped:
flutter/flutter#14927

This makes the iOS implementation a giant "hack" since what I am doing is taking the animation UIView, converting to a UIImage and finally to a CVPixelBuffer. And the time it takes for this is around 40ms (not enough to hit 60fps). And there is nothing in Lottie iOS that lets me get the raw image data.

Anyway I have a hit a bug with Flutter so will be blocked until that is fixed.

Code is available at http://github.com/harana/fluttie for now.

@simolus3
Copy link
Owner

Well that's unfortunate. Still, thank you for trying this out!

@HallerPatrick
Copy link

@baank This is maybe a stupid question, but isnt it possible to use a package like https://github.com/airbnb/lottie-ios for iOS to use its api to make it work? Or is this a "flutter to ios communication" problem?

@threeseed
Copy link

threeseed commented Jun 17, 2018 via email

@HallerPatrick
Copy link

@baank Thanks for the enlightenment. Looking forward to it!

@lukepighetti
Copy link

I don’t think I can be of much help as I am very new to iOS dev but I want you to know that I am very interested in your progress!

@nakashima-koki
Copy link

@baank
Thank you for your contiribution despite being extremely busy:bow:
I would like to know the current status. If you push your current to the branch, it may be helpful to you!

@threeseed
Copy link

@nakashima-koki .. I don't want to push anything to this repo unless it actually works.

Unfortunately I am pretty much stuck as I just don't know enough about the internals of how Fluttie works to know whether I am on the write track or not. Hopefully what I have can be helpful to someone though.

@panuavakul
Copy link

I'm wondering if anyone is still working on this?

Maybe after the PlatformView for iOS released, we can just call the iOS Native lottie library and wrap it in a Widget.

@gtupak
Copy link

gtupak commented Feb 20, 2019

Also interested in this. Would love to see some love for the iOS users <3

@lukepighetti
Copy link

Also, Skia has native Lottie support, there is an issue regarding adding native support. flutter/flutter#20438

@aroblast
Copy link

aroblast commented Jul 18, 2019

To anyone still wanting to use Lottie animations on iOS, I had the same thoughts a few days ago, and I decided to create a new iOS Lottie animations plugin for Flutter. It is still in the very early stage of development, but uses PlatformViews and works fine for now, so it is a 'native' approach to Lottie on iOS. It is written in Swift, so you have to fix a few things on your XCode files before, but it's worth it. I will be working on improvements during the next few days, to release a fuller version than the current v0.2.0. You can still try to use it via pub, or on github.

@NicolasDionB
Copy link

Any update on this? @aroblast do you think you will/could merge your code for iOS with this plugin? An all featured plugin for Lottie on Flutter would be really useful! There's still the web version but adding one brick at a time, iOS would be great!

@aroblast
Copy link

@NicolasDionB I am currently trying to find time to improve flotter but I don't think I'll be able to merge it, because it seems fluttie doesn't use the new PlatformViews as I'm using in flotter. I'm still working on Android integration slowly though, I hope I'll be able to implement it soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests