Popularity
6.0
Growing
Activity
1.6
-
632
19
46

Programming language: Swift
License: MIT License
Latest version: v0.0.2

ActivityIndicatorView alternatives and similar libraries

Based on the "Animation" category.
Alternatively, view ActivityIndicatorView alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of ActivityIndicatorView or a related project?

Add another 'Animation' Library

README

ActivityIndicatorView

A number of preset loading indicators created with SwiftUI


We are a development agency building phenomenal apps.

Travis CI Version Carthage Compatible License Platform Twitter

Usage

Create an indicator like this:

   ActivityIndicatorView(isVisible: $showLoadingIndicator, type: .default)

where
showLoadingIndicator - bool value you may change to display or hide the indicator
type - value from ActivityIndicatorView.IndicatorType enum

You may alter it with standard SwiftUI means like this:

   ActivityIndicatorView(isVisible: $showLoadingIndicator, type: .default)
        .frame(width: 50.0, height: 50.0)
        .foregroundColor(.red)

Indicator types

default - iOS UIActivityIndicator style
arcs
rotatingDots
flickeringDots
scalingDots
opacityDots
equalizer
growingArc - add custom color for growing Arc, the default value is Color.red

   ActivityIndicatorView(isVisible: $showLoadingIndicator, type: .growingArc(.red))
       .frame(width: 50.0, height: 50.0)

growingCircle
gradient - circle with angular gradient border stroke, pass colors ilke this:

   ActivityIndicatorView(isVisible: $showLoadingIndicator, type: .gradient([.white, .red]))
       .frame(width: 50.0, height: 50.0)

progressBar - line progress bar with a Binding progress value and background color, default is Color.clear:

   ActivityIndicatorView(isVisible: $showLoadingIndicator, type: .progressBar($progressValue, .gray)
       .frame(height: 8.0)
       .foregroundColor(.red)

Examples

To try out the ActivityIndicatorView examples:

  • Clone the repo git clone [email protected]:exyte/ActivityIndicatorView.git
  • Open terminal and run cd <ActivityIndicatorViewRepo>/Example
  • Run pod install to install all dependencies
  • Run xed . to open project in the Xcode
  • Try it!

Installation

CocoaPods

pod 'ActivityIndicatorView'

Carthage

github "Exyte/ActivityIndicatorView"

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/exyte/ActivityIndicatorView.git", from: "0.0.1")
]

Manually

Drop ActivityIndicatorView.swift into your project.

Requirements

  • iOS 13+ / watchOS 13+ / tvOS 13+ / macOS 10.15+
  • Xcode 11+


*Note that all licence references and agreements mentioned in the ActivityIndicatorView README section above are relevant to that project's source code only.