Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```