Swiftpack.co - Wavemaster111188/AnimatedWaveform as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Wavemaster111188.
Wavemaster111188/AnimatedWaveform v1.0.0
AnimatedWaveform provides the user with an animated version of the waveform.circle SF Symbol in SwiftUI.
⭐️ 15
🕓 2 years ago
iOS
.package(url: "https://github.com/Wavemaster111188/AnimatedWaveform.git", from: "v1.0.0")

release 1.0.0 iOS 15 SwiftUI 3 Swift 5.5 MIT licence 331kb

AnimatedWaveform

AnimatedWaveform is a Swift Package designed for SwiftUI.

It provides the user with an animated version of the waveform.circle SF Symbol.

animated example

Installation

Use the package dependency tab in your Xcode project to add AnimatedWaveform to your project via the url https://github.com/Wavemaster111188/AnimatedWaveform.

Usage

// basic version (using the .accentColor)
AnimatedWaveformView()
    .scaledToFit()

// with a custom color
AnimatedWaveformView(color: .mint)
    .scaledToFit()

// render the AnimatedWaveform with a slightly lighter ring, using the renderingMode hierarchical
AnimatedWaveformView(color: .purple, renderingMode: .hierarchical)
    .scaledToFit()

// render the AnimatedWaveform with custom colors, using the renderingMode palette
AnimatedWaveformView(color: .green, renderingMode: .palette, secondaryColor: .yellow)
    .scaledToFit()

// render the AnimatedWaveform without animation
AnimatedWaveformView(animated: false)
    .scaledToFit()

All parameters can be mixed and matched.

Note: it's neccessary to add the .scaledToFit() modifier to make the wave form work properly.

Contributing

Pull requests are always welcome.

Author

Kevin Deffke

License

MIT

GitHub

link
Stars: 15
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

1.0.0
2 years ago

The first release of AnimatedWaveform.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics