• Stars
    star
    200
  • Rank 188,455 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 2 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An iOS progress indicator view library written in SwiftUI

Β Β Β Β Β 

ProgressIndicatorView

A number of preset progress indicators created with SwiftUI

SPM Compatible Cocoapods Compatible Carthage Compatible License: MIT

Usage

Create a progress indicator like this:

ProgressIndicatorView(isVisible: $showProgressIndicator, type: .bar(progress: $progress))

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

You may alter it with standard SwiftUI means like this:

ProgressIndicatorView(isVisible: $showProgressIndicator, type: .bar(progress: $progress))
     .frame(width: 50.0, height: 50.0)
     .foregroundColor(.red)

Indicator types

default - progress indicator looks like default iOS UIActivityIndicator.
bar - line progress bar with a Binding progress value and background color, default is Color.clear:

 ProgressIndicatorView(isVisible: $showProgressIndicator, type: .bar(progress: $progress, backgroundColor: .gray)
     .frame(height: 8.0)
     .foregroundColor(.red)

impulseBar - impulse line bar, works as bar indicator with an impulse effect.
dashBar - discrete line bar, with number of pieces, default is 8:

  ProgressIndicatorView(isVisible: $showProgressIndicator, type: .dashBar(progress: $progress, numberOfItems: 8))
     .frame(height: 8.0)
     .foregroundColor(.red)

circle - cirle progress indicator, with lineWidth and strokeColor:

   ProgressIndicatorView(isVisible: $showProgressIndicator, type: .circle(progress: $progress, lineWidth: 8.0, strokeColor: .red))
      .frame(height: 8.0)
      .foregroundColor(.red)

Examples

To try out the ProgressIndicatorView examples:

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

Installation

Swift Package Manager

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

CocoaPods

pod 'ProgressIndicatorView'

Carthage

github "Exyte/ProgressIndicatorView"

Requirements

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

Our other open source SwiftUI libraries

PopupView - Toasts and popups library
Grid - The most powerful Grid container
ScalingHeaderScrollView - A scroll view with a sticky header which shrinks as you scroll
AnimatedTabBar - A tabbar with number of preset animations
MediaPicker - Customizable media picker
Chat - Chat UI framework with fully customizable message cells, input view, and a built-in media picker
ConcentricOnboarding - Animated onboarding flow
FloatingButton - Floating button menu
ActivityIndicatorView - A number of animated loading indicators
SVGView - SVG parser
LiquidSwipe - Liquid navigation animation

More Repositories

1

Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
Swift
5,964
star
2

PopupView

Toasts and popups library written with SwiftUI
Swift
2,976
star
3

Grid

The most powerful Grid container missed in SwiftUI
Swift
1,643
star
4

ARTetris

Augmented Reality Tetris made with ARKit and SceneKit
Swift
1,532
star
5

ActivityIndicatorView

A number of preset loading indicators created with SwiftUI
Swift
1,276
star
6

ConcentricOnboarding

SwiftUI library for a walkthrough or onboarding flow with tap actions
Swift
1,242
star
7

FloatingButton

Easily customizable floating button menu created with SwiftUI
Swift
1,010
star
8

ScalingHeaderScrollView

A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.
Swift
890
star
9

ReadabilityKit

Preview extractor for news, articles and full-texts in Swift
Swift
829
star
10

fan-menu

Menu with a circular layout based on Macaw
Swift
726
star
11

Chat

A SwiftUI Chat UI framework with fully customizable message cells and a built-in media picker
Swift
561
star
12

SVGView

SVG parser and renderer written in SwiftUI
Swift
530
star
13

LiquidSwipe

Example of using SwiftUI to create a beautiful Liquid Swipe control
Swift
474
star
14

Macaw-Examples

Various usages of the Macaw library
Swift
354
star
15

AnimatedTabBar

A tabbar with a number of preset animations written in pure SwiftUI
Swift
284
star
16

AndroidAnimatedNavigationBar

AnimatedNavigationBar is a navigation bar with a number of preset animations written in Jetpack Compose
Kotlin
263
star
17

MediaPicker

Customizable media picker written with SwiftUI
Swift
255
star
18

replicating

Kotlin
245
star
19

ComposeMultiplatformDribbbleAudio

A repo for the Dribbble Replicating Compose Multiplatform article
Kotlin
71
star
20

android-waves-progressbar

A depth gauge progress bar, inspired by Apple Watch dive widget.
Kotlin
41
star
21

clean-swift-article

Swift
37
star
22

sweet.eclipse

Sweet Eclipse
HTML
33
star
23

gaster

Ethereum transactions stats for your smart contracts
JavaScript
30
star
24

FlagAndCountryCode

A country code and flag icon provider library for iOS apps
Swift
28
star
25

android-replicating

Replicating complex UI using Jetpack Compose
Kotlin
23
star
26

ShapedBackgroundAndroid

Repo for the instagram-like shaped background on Android
Kotlin
23
star
27

wwdc2020-tutorials

Swift
21
star
28

AnimatedGradient

Swift
18
star
29

core-haptics-example

Swift
13
star
30

homebrew-formulae

Ruby
1
star
31

openai-assistants-api

Swift
1
star