TwoDollarsEsq / RainbowBar

Progress bar with wild animation for notched status bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RainbowBar

Progress bar with wild animation for notched status bar. Automatic sizing (height and notch curves) according to device model. Powered by SwiftUI and Combine. Made just for fun and SwiftUI practice) Inspired by https://dribbble.com/shots/3824870-Loading-Animation-for-iPhone-X

gif demo

Install

CocoaPods

To integrate RainbowBar into your project add the following to your Podfile:

platform :ios, '13.0'
use_frameworks!

pod 'RainbowBar'

Usage

import SwiftUI
import Combine
import RainbowBar

var animatedSignal = PassthroughSubject<Bool, Never>()

RainbowBar(waveEmitPeriod: 0.3,
           visibleWavesCount: 3,
           waveColors: [.red, .green, .blue],
           backgroundColor: .white,
           animated: animatedSignal)
           
animatedSignal.send(true)

About

Progress bar with wild animation for notched status bar

License:MIT License


Languages

Language:Swift 93.3%Language:Ruby 6.7%