https://github.com/0xyanis/shimmer-swiftui-modifier
ShimmerEffect is a lightweight library that provides a custom modifier for SwiftUI views, allowing you to easily add shimmering effects to your UI components.
https://github.com/0xyanis/shimmer-swiftui-modifier
ios ipad shimmer swift swift-package-manager swift5 swiftui
Last synced: 3 months ago
JSON representation
ShimmerEffect is a lightweight library that provides a custom modifier for SwiftUI views, allowing you to easily add shimmering effects to your UI components.
- Host: GitHub
- URL: https://github.com/0xyanis/shimmer-swiftui-modifier
- Owner: 0xYanis
- License: mit
- Created: 2024-01-27T14:54:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-27T16:14:19.000Z (over 1 year ago)
- Last Synced: 2025-04-12T20:45:04.231Z (6 months ago)
- Topics: ios, ipad, shimmer, swift, swift-package-manager, swift5, swiftui
- Language: Swift
- Homepage:
- Size: 700 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ShimmerEffect
ShimmerEffect is a lightweight library that provides a custom modifier for SwiftUI views, allowing you to easily add shimmering effects to your UI components.
## Features
- Easily add shimmer effect to any SwiftUI view.
- Customizable shimmer animation speed, gradient colors, and direction.
![]()
## Requirements
- iOS 15
- Swift 5.5## Installation
You can install Shimmer-SwiftUI-Modifier using Swift Package Manager. In Xcode, go to File > Swift Packages > Add Package Dependency and enter the repository URL.
```swift
dependencies: [
.package(url: "https://github.com/0xYanis/Shimmer-SwiftUI-Modifier.git", from: "1.0.0")
]
```## Usage
Adding shimmer effect to a view is as simple as applying the `shimmer` modifier to it:
```swift
import SwiftUI
import ShimmerEffectstruct ContentView: View {
var body: some View {
Text("Hello, Shimmer!")
.shimmer(true)
}
}
```You can customize the shimmer effect by providing parameters to the `shimmerEffect` modifier:
```swift
Text("Hello, Customized Shimmer!")
.shimmerEffect(isActive: true, speed: 1.2, colors: [.gray, .white], cornerRadius: 8)
```## License
ShimmerEffect is available under the MIT license. See the [LICENSE](https://github.com/0xYanis/Shimmer-SwiftUI-Modifier/blob/main/LICENSE) file for more info.
## Contributions
Contributions are welcome! Feel free to submit pull requests, create issues, or suggest new features.
## Credits
ShimmerEffect is maintained by [0xYanis].
Enjoy using the library and happy shimmering!