Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninise/swiftui-shimmeringview
Cool SwiftUI tool to animate any type of View
https://github.com/ninise/swiftui-shimmeringview
ios swift swiftui
Last synced: 4 days ago
JSON representation
Cool SwiftUI tool to animate any type of View
- Host: GitHub
- URL: https://github.com/ninise/swiftui-shimmeringview
- Owner: Ninise
- License: mit
- Created: 2023-11-25T23:39:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-06T22:43:14.000Z (6 months ago)
- Last Synced: 2025-01-10T04:06:03.700Z (17 days ago)
- Topics: ios, swift, swiftui
- Language: Swift
- Homepage:
- Size: 942 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftUI-ShimmeringView
[![Swift Version](https://img.shields.io/badge/Swift-5.5-orange.svg)](https://swift.org)
[![Platform](https://img.shields.io/badge/Platform-iOS%20%7C%20macOS%20%7C%20watchOS%20%7C%20tvOS-lightgrey.svg)](https://developer.apple.com)Nice and simple replacement of a boring spinner loader. Do not block your users while the data is on the way!
## Usage
1. Import the package
```swift
import ShimmeringView
```
2. Add the function to your view as per example
```swift
HStack {
Image("ic_def_avatar")
.padding()
Text("Hello")
.padding()
}
.shimmering()
```## Requirements
- Swift 5.5+
- iOS 14.0+, macOS 11.0+## Installation
### Swift Package Manager
`SwiftUI-ShimmeringView` is available through [Swift Package Manager](https://swift.org/package-manager/).To add package go to `File -> Swift Packages -> Add Package Dependancy `
```ruby
name: "SwiftUI-ShimmeringView"
url: https://github.com/Ninise/swiftui-shimmeringview.git
version: 1.0.0
```