Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 746 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 746 Bytes

ActivityView

Displays an activity indicator in the center of the screen

Installation

Manual

Copy ActivityView.swift file to your project. That's it.

Swift Package Manager

Add dependencies

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 package

import ActivityView

Usage

Show

ActivityView.shared.show()

Hide

ActivityView.shared.hide()