Contents

bibinjacobpulickal/BBLoader

A light-weight minimal looking loading animation popup build on top of UIKit for iOS and tvOS. Provides an immersive loading experience while the contents are being loaded asynchronously.

Support

[Platform] [[iOS]](https://www.apple.com/in/macos/catalina/) [[Xcode]](https://developer.apple.com/xcode/) [[Swift]](https://developer.apple.com/swift/)

Code

import UIKit
import BBLoader

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        presentBBLoader(duration: 30, setup: { loader in
            loader.title                 = "Loading"
            loader.message               = "Please wait..."
            loader.backgroundColor       = .black
            loader.textColor             = .red
            loader.loadingIndicatorColor = .red
        }) { loader in
            URLSession.shared.dataTask(with: URL(string: "https://www.yoururl.com")!) { _,_,_  in
                loader.dismiss()
            }.resume()
        }
    }
}

Screenshots

<table> <tr> <td>Simple</td> <td>Multi-color Spinner</td> <td>Quad-Rotating Squares To Circles</td> </tr> <tr> <td><img src="Screenshots/BBLoader.gif" width=300 height=600></td> <td><img src="Screenshots/BBMulticolorSpinner.gif" width=300 height=600></td> <td><img src="Screenshots/BBQuadRotatingSquaresToCircles.gif" width=300 height=600></td> </tr> </table>

## Installation

### Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but BBLoader does support its use on supported platforms.

Once you have your Swift package set up, adding BBLoader as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/bibinjacobpulickal/BBLoader.git", .upToNextMajor(from: "1.0.0"))
]

Example

Clone or download the project. Open .xcodeproj file using supported Xcode. Change target to iOSExample and run on a device or simulator.

License

BBLoader is released under the MIT license. See LICENSE for details.

Package Metadata

Repository: bibinjacobpulickal/BBLoader

Stars: 5

Forks: 3

Open issues: 0

Default branch: master

Primary language: swift

License: MIT

README: README.md