Skip to content

Ninise/swiftui-shimmeringview

Repository files navigation

SwiftUI-ShimmeringView

Swift Version Platform

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
import ShimmeringView
  1. Add the function to your view as per example
  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.

To add package go to File -> Swift Packages -> Add Package Dependancy

name: "SwiftUI-ShimmeringView"
url: https://github.com/Ninise/swiftui-shimmeringview.git
version: 1.0.0

About

Cool SwiftUI tool to animate any type of View

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages