ViewWithActivityIndicator is a Swift Package and you can install it with Xcode 11:
Copy SSH git@github.com:blackwiz4rd/ViewWithActivityIndicator.git or HTTPS https://github.com/blackwiz4rd/ViewWithActivityIndicator.git URL from github;
Open File/Swift Packages/Add Package Dependency… in Xcode 11;
Paste the URL and follow steps.
Usage
ViewWithActivityIndicator must be initialized with a URL and optional placeholder image.
let url = ""
ViewWithActivityIndicator(imageURL: url)
ViewWithActivityIndicator(imageURL: url,placeHolder: "icon")
ViewWithActivityIndicator
ViewWithActivityIndicator
is a SwiftUI view that download and display image from URL and displaying Activity Indicator while loading .ScreenShots
Demo app ViewWithActivityIndicatorDemo.
Installation
ViewWithActivityIndicator
is a Swift Package and you can install it with Xcode 11:git@github.com:blackwiz4rd/ViewWithActivityIndicator.git
or HTTPShttps://github.com/blackwiz4rd/ViewWithActivityIndicator.git
URL from github;Usage
ViewWithActivityIndicator
must be initialized with a URL and optional placeholder image.Using in a view:
Using in a list:
ViewLoaders allows to create multiple loaders given a String array: