A simple and customizable activity indicator.

Overview

日本語

KRActivityIndicatorView

Version License Platform Download Carthage compatible CI Status

KRActivityIndicatorView is a simple and customizable activity indicator written in Swift.

You can add KRActivityIndicatorView from IB and code.

On HUD => https://github.com/krimpedance/KRProgressHUD

Features

  • Round indicator
  • Indicator color can be customized

Requirements

  • iOS 9.0+
  • Xcode 12.0+
  • Swift 5.3+

DEMO

To run the example project, clone the repo, and open KRActivityIndicatorViewDemo.xcodeproj from the DEMO directory.

or appetize.io

Installation

KRActivityIndicatorView is available through CocoaPods and Carthage. To install it, simply add the following line to your Podfile or Cartfile:

# CocoaPods
pod "KRActivityIndicatorView"
# Carthage
github "Krimpedance/KRActivityIndicatorView"

Usage

(see sample Xcode project in /Demo)

Usage is almost same as UIActivityIndicatorView.

Showing activity indicator

Show simple KRActivityIndicatorView.

let activityIndicator = KRActivityIndicatorView()
view.addSubview(activityIndicator)

With single color.

KRActivityIndicatorView(colors: [.green])

With gradation color.

KRActivityIndicatorView(colors: [.red, .orange, .white])

Start and stop animation.

activityIndicator.startAnimating()
activityIndicator.stopAnimating()

Customization

Current available params on IB:

  • headColor - gradient head color.
  • tailColor - gradient tail color.
  • numberOfDots - number of indicator dots.
  • duration - Duration for one rotation.
  • animating - Animation of activity indicator when it's shown
  • hidesWhenStopped - calls setHidden when call stopAnimating()

Release Note

  • 3.0.7 :

    • Support for iOS 11 and below
  • 3.0.6 :

    • Update for Xcode 12

License

KRActivityIndicatorView is available under the MIT license. See the LICENSE file for more info.

You might also like...
Fast and simple OCR library written in Swift

⛔️ This Project is deprecated and no longer gets maintained! Please use Apple's Vision framework instead of SwiftOCR. It is very fast, accurate and mu

This simple cordova plugin will download picture from an URL and save to IOS Photo Gallery.

Photo Viewer This plugin is intended to download a picture from an URL into IOS Photo library.. How to Install Cordova: cordova plugin add https://git

A simple and flexible way to add source of overlapping circular pictures, currently supports horizontal overlapping or distant pictures with great layout flexibility.
A simple and flexible way to add source of overlapping circular pictures, currently supports horizontal overlapping or distant pictures with great layout flexibility.

THIS PROJECT IS NO LONGER MAINTAINED. STILL ONE ONLY BEST UI SOLUTION FOR UIKIT DEVELOPERS. SOON WILL COME UP WITH SWIFTUI STILL CONTRIBUTORS ARE WELC

Fast and simple OCR library written in Swift

⛔️ This Project is deprecated and no longer gets maintained! Please use Apple's Vision framework instead of SwiftOCR. It is very fast, accurate and mu

CameraButton - A simple camera button that can be used for photo and video capturing
CameraButton - A simple camera button that can be used for photo and video capturing

CameraButton A simple camera button that can be used for photo and video capturi

PhotoApp - A Simple Photo App using Swift and MVC pattern
PhotoApp - A Simple Photo App using Swift and MVC pattern

PhotoApp A Simple Photo App using Swift and MVC pattern After App launch, you wi

Simple UIView to interact with an Image view like scroll, zoom, pinch and crop.
Simple UIView to interact with an Image view like scroll, zoom, pinch and crop.

Welcome to Interactive Image View, a simple library that provides an easier way to interact with image view, like scroll, zoom and crop. In its core i

A simple Swift wrapper for libgd

SwiftGD This is a simple Swift wrapper for libgd, allowing for basic graphic rendering on server-side Swift where Core Graphics is not available. Alth

A simple, declarative, functional drawing framework, in Swift!
A simple, declarative, functional drawing framework, in Swift!

DePict - A simple, declarative, functional drawing framework. To produce a drawing, call the Draw function (just type Draw and let autocomplete do the

Comments
  • Type 'String' has no member 'forwards'

    Type 'String' has no member 'forwards'

    KRActivityIndicatorView.swift:203:31: Type 'String' has no member 'forwards'

    .forwards should be replaced with kCAFillModeForwards to work with latest Swift version 4.2 and Xcode 10.1

    opened by ahmadansari 2
Releases(3.0.2)
Owner
K.R.Impedance
K.R.Impedance
FMPhotoPicker is a modern, simple and zero-dependency photo picker with an elegant and customizable image editor

FMPhotoPicker is a modern, simple and zero-dependency photo picker with an elegant and customizable image editor Quick demo Batch select/deselect Smoo

Cong Nguyen 648 Dec 27, 2022
A Shortcuts-like and highly customizable SFSymbol picker written in Swift.

SFTintedIconPicker SFTintedIconPicker is a Shortcuts-like and highly customizable SFSymbol picker written in Swift. Features Native Appearance Search

StephenFang 2 Aug 16, 2022
DTPhotoViewerController - A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer.

DTPhotoViewerController Example Demo video: https://youtu.be/aTLx4M4zsKk DTPhotoViewerController is very simple to use, if you want to display only on

Tung Vo 277 Dec 17, 2022
Easy customizable avatar image asynchronously with progress bar animated

JDSwiftAvatarProgress ##Objective-C JDAvatarProgress is available in Objective-C also, JDAvatarProgress Usage To run the example project, clone the re

Jelly Development 86 May 16, 2022
Highly customizable Action Sheet Controller with Assets Preview written in Swift

PPAssetsActionController Play with me ▶️ ?? If you want to play with me, just tap here and enjoy! ?? ?? Show me ?? Try me ?? The easiest way to try me

Pavel Pantus 72 Feb 4, 2022
FlaneurImagePicker is an iOS image picker that allows users to pick images from different sources (ex: user's library, user's camera, Instagram...). It's highly customizable.

FlaneurImagePicker is a highly customizable iOS image picker that allows users to pick images from different sources (ex: device's library, device's c

FlaneurApp 17 Feb 2, 2020
PhotoEditor SDK: A fully customizable photo editor for your app.

About PhotoEditor SDK for iOS Our SDK provides tools for adding photo editing capabilities to your iOS application with a big variety of filters that

IMG.LY 116 Jan 1, 2023
A simple iOS photo and video browser with grid view, captions and selections.

MWPhotoBrowser A simple iOS photo and video browser with optional grid view, captions and selections. MWPhotoBrowser can display one or more images or

Michael Waterfall 8.8k Dec 27, 2022
A simple mesh viewer for MacOS based on Swift and Metal and using Assimp for loading meshes

Metal Mesh Viewer A simple triangle mesh viewer for MacOS This application is a simple (triangle) mesh viewer that should be capable of rendering even

J. Andreas Bærentzen 0 Dec 13, 2021
A simple, performant, and lightweight SVG parser

Key Features Parsing performance that meets or beats other popular SVG Frameworks A simple architecture, optimized for extension, flexibility and deve

Michael Choe 1.8k Dec 29, 2022