Skip to content

A SwiftUI package to add a simple lightning or rain animation to a view.

Notifications You must be signed in to change notification settings

doorhinge-apps/LightningAnimation

Repository files navigation

Lightning Animation

This is a simple set of views written in SwiftUI. It has a lightning animation and a rain animation.

Installation

You can install the package using Swift Package Manager

dependencies: [
    .package(url: "https://github.com/doorhinge-apps/LightningAnimation.git", branch: "main")
]

Usage

Import the package in files you want to use it in.

import LightningAnimation

Lightning Bolts

The lightningInterval parameter accepts a Double value. It changes how many seconds between each lightning bolt.

LightningBolt(lightningInterval: 3.0)

Rain

You can display a rain animation using the rain view in the package.

Rain()

About

A SwiftUI package to add a simple lightning or rain animation to a view.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages