gh-EmergeTools-Pow/Sources/Pow/Effects/PingEffect.swift
Joe Fabisevich 5b95fe95b0
Moving Pow to @emergetools (#36)
Co-authored-by: Robert Böhnke <robb@robb.is>
Co-authored-by: Kasper Lahti <kasper@lahti.email>
2023-11-29 12:08:53 -03:00

14 lines
601 B
Swift

import SwiftUI
public extension AnyChangeEffect {
/// An effect that adds one or more shapes that slowly grow and fade-out behind the view.
///
/// - Parameters:
/// - shape: The shape to use for the effect.
/// - style: The shape style to use for the effect. Defaults to `tint`.
/// - count: The number of shapes to emit.
@available(*, deprecated, renamed: "pulse(shape:style:count:)")
static func ping(shape: some InsettableShape, style: some ShapeStyle = .tint, count: Int) -> AnyChangeEffect {
pulse(shape: shape, style: style, count: count)
}
}