ShimmeringUiView

main

Cool SwiftUI tool to animate any type of View
Ninise/swiftui-shimmeringview

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

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 12:29:27 GMT-0900 (Hawaii-Aleutian Daylight Time)