All Projects → ppth0608 → BPBlockActivityIndicator

ppth0608 / BPBlockActivityIndicator

Licence: MIT license
A simple and awesome loading Activity Indicator(with block moving animation) for your iOS app.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to BPBlockActivityIndicator

Keyboardhidemanager
Codeless manager to hide keyboard by tapping on views for iOS written in Swift
Stars: ✭ 57 (+32.56%)
Mutual labels:  storyboard
Dckit
Set of iOS controls with useful IBInspectable properties. Written on Swift.
Stars: ✭ 144 (+234.88%)
Mutual labels:  storyboard
Swiftyfitsize
📱 Swifty screen adaptation solution (Support Objective-C and Swift)
Stars: ✭ 184 (+327.91%)
Mutual labels:  storyboard
Storyline.js
Storyline - generic sequencer for JavaScript projects
Stars: ✭ 70 (+62.79%)
Mutual labels:  storyboard
Xib2storyboard
A tool to convert Xcode .xib to .storyboard files
Stars: ✭ 121 (+181.4%)
Mutual labels:  storyboard
Pscarouselview
A drop-in carousel view. Most of Apps put it in their first screen.
Stars: ✭ 149 (+246.51%)
Mutual labels:  storyboard
Tangramkit
TangramKit is a powerful iOS UI framework implemented by Swift. It integrates the functions with Android layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,LayoutSizeClass to build your App 自动布局 UIView UITableView UICollectionView
Stars: ✭ 984 (+2188.37%)
Mutual labels:  storyboard
Chipagecontrol
A set of cool animated page controls written in Swift to replace boring UIPageControl. Mady by @ChiliLabs - https://chililabs.io
Stars: ✭ 2,909 (+6665.12%)
Mutual labels:  storyboard
Switch
💊 An iOS switch control implemented in Swift with full Interface Builder support
Stars: ✭ 132 (+206.98%)
Mutual labels:  storyboard
Ghosttypewriter
👻 A UILabel subclass that adds a typewriting animation effect
Stars: ✭ 159 (+269.77%)
Mutual labels:  storyboard
Natalie
Natalie - Storyboard Code Generator (for Swift)
Stars: ✭ 1,183 (+2651.16%)
Mutual labels:  storyboard
Easystepindicator
More attributes for a step indicator, indicates steps with a easy way
Stars: ✭ 78 (+81.4%)
Mutual labels:  storyboard
Swiftcolorgen
A tool that generate code for Swift projects, designed to improve the maintainability of UIColors
Stars: ✭ 152 (+253.49%)
Mutual labels:  storyboard
Capsuleview
An easy to use drop-in view to create a beautiful card style effect with a title placeholder and body content.
Stars: ✭ 68 (+58.14%)
Mutual labels:  storyboard
Storyboarder
✏️ Storyboarder makes it easy to visualize a story as fast you can draw stick figures.
Stars: ✭ 2,467 (+5637.21%)
Mutual labels:  storyboard
Bartycrouch
Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
Stars: ✭ 1,032 (+2300%)
Mutual labels:  storyboard
Instantiate
Type-safe and constructor injectable InterfaceBuilder protocols.
Stars: ✭ 149 (+246.51%)
Mutual labels:  storyboard
Localize
Localize is a framework writed in swift to localize your projects easier improves i18n, including storyboards and strings.
Stars: ✭ 253 (+488.37%)
Mutual labels:  storyboard
Swinjectstoryboard
Swinject extension for automatic dependency injection via Storyboard
Stars: ✭ 211 (+390.7%)
Mutual labels:  storyboard
Kwdrawercontroller
Drawer view controller that easy to use!
Stars: ✭ 154 (+258.14%)
Mutual labels:  storyboard

BPBlockActivityIndicator

BPBlockActivityIndicator is a clean and easy-to-use Activity Indicator meant to display the progress of an ongoing task on iOS.

Demo

Requirements

  • Deployment Target - iOS 8.0
  • Swift Version - Swift 3.2

Installation

CocoaPods

BPBlockActivityIndicator is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "BPBlockActivityIndicator"

Carthage

Simply add the following line to your Cartfile:

github "ppth0608/BPBlockActivityIndicator"

Manual

Copy the folder Source/ to your project

Usage

Using BPBlockActivityIndicator isn't difficult at all. There are two actual ways of implementing it in your project:

  • Storyboard setup
  • Manual setup

Storyboard Setup

First, add a UIView to your Storyboard and set the custom class (You can set custom classes in Identity Inspector) as it shown in the picture below:

2017-07-17 12 51 06

Then, add the corresponding Outlet in to your code:

@IBOutlet weak var blockIndicator: BPBlockActivityIndicator!

Manual setup

If you would like to setup BPBlockActivityIndicator manually, you have to do the following:

var blockIndicatorindicator: BPBlockActivityIndicator!

override func viewDidLoad() {
    super.viewDidLoad()

    // initialize BPBlockActivityIndicator programmatically        
    blockIndicatorindicator = BPBlockActivityIndicator(frame: CGRect(x: 0, y: 0, width: 40, height: 40))
    view.addSubview(blockIndicatorindicator)
}

Animate & Stop

You can easily animate and stop animations like so:

@IBAction func startAnimate(_ sender: Any) {
    blockIndicator.animate()
}

@IBAction func stopAnimate(_ sender: Any) {
    blockIndicator.stop()
}

Customize

If you want to setup animation speed or the color of blocks (if using a storyboard) you can set the properties in the Identity Inspector as it shown in the picture below:

2017-07-17 12 51 51

Or (if using code), you can call methods as shown in the code below:

blockIndicatorindicator = BPBlockActivityIndicator(frame: CGRect(x: 30, y: 30, width: 40, height: 40))
            .movementSpeed(0.2)
            .blockColor(.cyan)
view.addSubview(blockIndicatorindicator)

Default settings are shown below:

  • Animation Speed : 0.6
  • Color of blocks : Blue

Author

Ben.Park, [email protected]

Designed By

Suna.Shin, [email protected]

Contribute

Always welcome :) Please submit pull request to BPBlockActivityIndicator.

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].