Wave Animation

Wave Animation

Versatile wave animations for dynamic UIs. Includes simple waves, filled waves, multi-layer waves, wave loading indicators, wave progress bars, circular waves, audio visualizers, and wave backgrounds. Fully customizable with colors, speeds, and amplitudes.

Luiz Mello
  • animation
  • loading
  • progress

snippet.swift565 lines

12 files • Scroll to see all →
public struct WaveConfiguration {    let amplitude: CGFloat    let frequency: CGFloat    let speed: Double    let phase: CGFloat        public init(        amplitude: CGFloat = 20,        frequency: CGFloat = 1.5,        speed: Double = 2.0,        phase: CGFloat = 0    ) {        self.amplitude = amplitude        self.frequency = frequency        self.speed = speed        self.phase = phase    }        public static let `default` = WaveConfiguration()    public static let gentle = WaveConfiguration(amplitude: 10, frequency: 1.0, speed: 3.0)    public static let intense = WaveConfiguration(amplitude: 30, frequency: 2.0, speed: 1.5)}
Viewing: WaveConfiguration.swift•1 of 12