Back to Library
Shimmer Button

Shimmer Button

by Luiz Mello

@luizmellodev
buttonanimationshimmergradientinteraction

Description

Beautiful animated buttons with shimmer/shine effects. Includes default shimmer, gradient shimmer with rotating colors, and pulse shimmer with expanding rings. Fully customizable with haptic feedback and smooth animations.

SwiftUI Code

6 files • Scroll to see all →
public struct ShimmerButtonStyle {
    let backgroundColor: Color
    let foregroundColor: Color
    let shimmerColor: Color
    let cornerRadius: CGFloat
    let height: CGFloat
    let fontSize: CGFloat
    let fontWeight: Font.Weight
    let shadowRadius: CGFloat
    let shimmerSpeed: Double
    
    public init(
        backgroundColor: Color = .blue,
        foregroundColor: Color = .white,
        shimmerColor: Color = .white.opacity(0.6),
        cornerRadius: CGFloat = 12,
        height: CGFloat = 56,
        fontSize: CGFloat = 17,
        fontWeight: Font.Weight = .semibold,
        shadowRadius: CGFloat = 8,

// ... (click "Show full code" to see more)
Viewing: ShimmerButtonStyle.swift1 of 6