{"id":20664726,"url":"https://github.com/jasudev/lottieui","last_synced_at":"2025-04-19T16:23:16.881Z","repository":{"id":46592567,"uuid":"458715870","full_name":"jasudev/LottieUI","owner":"jasudev","description":"Lottie for SwiftUI. It is a library developed to make Lottie easy to implement. It supports iOS and macOS.","archived":false,"fork":false,"pushed_at":"2023-05-31T10:09:22.000Z","size":413,"stargazers_count":72,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-05-31T11:15:19.989Z","etag":null,"topics":["lottie","lottie-ios","lottie-macos","lottie-swiftui","lottieview","swiftui","swiftui-animation","swiftui-animations"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasudev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-13T05:10:58.000Z","updated_at":"2023-05-31T09:56:13.000Z","dependencies_parsed_at":"2023-02-05T08:16:50.998Z","dependency_job_id":null,"html_url":"https://github.com/jasudev/LottieUI","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FLottieUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FLottieUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FLottieUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasudev%2FLottieUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasudev","download_url":"https://codeload.github.com/jasudev/LottieUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224960294,"owners_count":17398835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lottie","lottie-ios","lottie-macos","lottie-swiftui","lottieview","swiftui","swiftui-animation","swiftui-animations"],"created_at":"2024-11-16T19:25:55.563Z","updated_at":"2024-11-16T19:25:56.299Z","avatar_url":"https://github.com/jasudev.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **LottieUI for SwiftUI**\nIt is a library developed to make Lottie easy to implement. It supports iOS and macOS.\n\n[![Platforms](https://img.shields.io/badge/Platforms-iOS%20%7C%20macOS-blue?style=flat-square)](https://developer.apple.com/macOS)\n[![iOS](https://img.shields.io/badge/iOS-14.0-blue.svg)](https://developer.apple.com/iOS)\n[![macOS](https://img.shields.io/badge/macOS-11.0-blue.svg)](https://developer.apple.com/macOS)\n[![instagram](https://img.shields.io/badge/instagram-@dev.fabula-orange.svg?style=flat-square)](https://www.instagram.com/dev.fabula)\n[![SPM](https://img.shields.io/badge/SPM-compatible-red?style=flat-square)](https://developer.apple.com/documentation/swift_packages/package/)\n[![MIT](https://img.shields.io/badge/licenses-MIT-red.svg)](https://opensource.org/licenses/MIT)  \n\n## Screenshot\nhttps://user-images.githubusercontent.com/1617304/153740565-52e8fb67-c548-4124-a803-fa75c287cd6d.mp4\n\n## Example\n[https://fabulaapp.page.link/225](https://fabulaapp.page.link/225)\n\n## Usages\n1. LUStateData examples.\n    ```swift\n    /// Loads an animation model from a bundle by its name.\n    let state1 = LUStateData(type: .name(\"bubble1\"), loopMode: .loop)\n    /// Loads a Lottie animation asynchronously from the URL.\n    let state2 = LUStateData(type: .loadedFrom(URL(string: \"https://assets9.lottiefiles.com/packages/lf20_mniampqn.json\")!), speed: 1.0, loopMode: .loop)\n    /// Loads an animation from a specific filepath.\n    let state3 = LUStateData(type: .filepath(\"/Users/jasu/Downloads/bubble2.json\"), speed: 1.0, loopMode: .loop)\n    ```\n    \n3. How to use LottieView.\n    ```swift\n    /// 1\n    LottieView(state: state1)\n    ...\n    /// 2\n    LottieView(state: state1, onCompleted: { success in\n        print(\"Completed\")\n    }, onDownloaded: { success in\n        print(\"Downloaded\")\n    })\n    ...\n    /// 3\n    VStack {\n        LottieView(state: state1, value: value, onCompleted: { success in\n            print(\"Completed\")\n        }, onDownloaded: { success in\n            print(\"Downloaded\")\n        })\n        Slider(value: $value, in: 0...1)\n    }\n    ```\n## Swift Package Manager\nThe Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding LottieUI as a dependency is as easy as adding it to the dependencies value of your Package.swift.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/jasudev/LottieUI.git\", .branch(\"main\"))\n]\n```\n\n## Contact\ninstagram : [@dev.fabula](https://www.instagram.com/dev.fabula)  \nemail : [dev.fabula@gmail.com](mailto:dev.fabula@gmail.com)\n\n## License\nLottieUI is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasudev%2Flottieui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasudev%2Flottieui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasudev%2Flottieui/lists"}