Alisa Mylnikova d8c3463e70 Add project
Add framework and example

Update .gitignore

Update LICENSE

Update LICENSE

Update Package.swift

Update README.md

Rename again

Update readme

Update readme
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00
2020-03-23 17:36:26 +07:00

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:

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

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

You may alter it with standard SwiftUI means like this:

ActivityIndicator(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
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)

Examples

To try out the ActivityIndicatorView examples:

  • Clone the repo git clone git@github.com: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"

Manually

Drop ActivityIndicatorView.swift into your project.

Requirements

  • iOS 13+ / watchOS 13+ / tvOS 13+ / macOS 10.15+
  • Xcode 11+
S
Description
A number of preset loading indicators created with SwiftUI
Readme MIT 3.9 MiB
Languages
Swift 97.3%
Objective-C 2.7%