ShimmerFX

main

Creates shimmer effects for SwiftUI Views
leohsmedeiros/ShimmerFX

ShimmerFX

Creates shimmer effects for SwiftUI Views

presentation

Usage

import SwiftUI
import ShimmerFX

struct ShimmerizedView: View {
  var body: some View {
    Text("Text to shimmerize").shimmerize()
  }
}

Parameters

  • active: Bool: Determines whether the shimmering effect is active or not. (default value: true)
  • shouldAddHideMask: Bool: Controls whether a mask (overlay) should be added to hide certain parts of the view. (default value: true)
  • hideMaskColor: Color: Specifies the color of the mask. (default value: Color.gray)
  • hideMaskRadius: CGFloat: Defines the corner radius of the mask. (default value: 0.0)
  • gradient: Gradient?: Allows a custom gradient to be applied to the shimmering effect. If no gradient was provided it will use the default created by the library. (default value: nil)
  • animationDuration: TimeInterval: Sets the duration of the shimmering animation cycle. (default value: 1.7)
  • animationDelay: TimeInterval: Specifies the delay before the shimmering animation starts. (default value: 0.5)

Installation

  • Swift Package Manager
.package(url: "https://github.com/leohsmedeiros/ShimmerFX.git", from: #version#)
  • CocoaPods
pod 'ShimmerFX', '~> v1.0'

Key Features

  • Customizable Animations: Easily adjust the shimmer animation speed and colors to match your app's design.
  • Content Masking Options: Choose to hide the underlying content or display it while the shimmer effect is active.
  • Adjustable Mask Radius: Customize the radius of the shimmer mask.
  • Seamless Integration: Integrate ShimmerFX into your existing projects with minimal effort.
  • Performance Optimized: Ensure a smooth experience without compromising on speed.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat May 31 2025 17:04:28 GMT-0900 (Hawaii-Aleutian Daylight Time)