Displays an activity indicator in the center of the screen
Copy ActivityView.swift
file to your project. That's it.
Add the ActivityView
package to the dependencies within your application’s Package.swift
file. Substitute "x.x.x"
with the latest ActivityView
release.
.package(url: "https://github.com/emartife/ActivityView.git", from: "x.x.x")
Add ActivityView
to your target's dependencies:
.target(name: "example", dependencies: ["ActivityView"]),
import ActivityView
Show
ActivityView.shared.show()
Hide
ActivityView.shared.hide()