8000 GitHub - FiveDay/Lottie-SwiftUI: 支持SwiftUI预览Lottie动画
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

FiveDay/Lottie-SwiftUI

Repository files navigation

Lottie-SwiftUI

  • 支持SwiftUI预览Lottie动画

Requirements

  • iOS13.0 or later

Install

Swift Packages

  1. In Xcode, open your project and navigate to File > Swift Packages > Add Package Dependency...
  2. Paste the repository URL and follow the prompts to add the library to your project.

Quick Start

import SwiftUI
import LottieSwiftUI

struct ContentView : View {
    var name: String = "LottieLogo1"
    var body: some View {
        LottieAnimationView(name: name).play()
    }
}

Demo

About

支持SwiftUI预览Lottie动画

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0