SwiftUIRippleEffect

1.0.2

A lightweight SwiftUI ViewModifier that adds a smooth, configurable ripple animation to any view.
RogyMD/SwiftUIRippleEffect

What's New

v1.0.2

2026-05-29T22:51:04Z

Full Changelog: 1.0.1...1.0.2

SwiftUIRippleEffect

A lightweight SwiftUI.View modifier that adds a smooth, configurable ripple animation to any view. Designed for buttons, taps, state changes, or moments where you want your UI to feel a bit more alive.


Features

  • Ripple animation triggered by any Equatable value
  • Customizable duration, amplitude, frequency, decay, and speed
  • Works with any SwiftUI view
  • Simple one-line integration

Note: Inspired by WWDC24 session 10151 — Create custom visual effects in SwiftUI.


Demo

Ripple demo


Installation

Swift Package Manager

Add this URL to File → Add Packages… in Xcode:

https://github.com/RogyMD/SwiftUIRippleEffect.git

Usage

import SwiftUI
import SwiftUIRippleEffect

struct ContentView: View {
  @State var rippleOrigin: CGPoint = .zero
  @State var trigger: Bool = false

  var body: some View {
    Image(systemName: "sun.max.circle.fill")
      .rippleEffect(at: rippleOrigin, trigger: trigger)
      .onTapGesture { origin in
        rippleOrigin = origin
        trigger.toggle()
      }
  }
}

Requirements

  • iOS 17.0 or later
  • SwiftUI

Contribution

Issues and pull requests are welcome! If you’d like to improve the ripple curve, performance, or add new presets, feel free to open a discussion.


License

MIT License

Description

  • Swift Tools 6.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 30 2026 11:23:01 GMT-0900 (Hawaii-Aleutian Daylight Time)