Latest 1.0.1
Homepage https://github.com/Aymenworks/AWLoader
License MIT
Platforms ios 9.0, requires ARC
Authors

AWLoader is a UI Component that allows you to integrate loader that fits your needs within your app.

Overview

Appareance

AWLoader all gif

Behind the scenes

As simple as:
Whimsical AWLoader

🔶 Requirements

  • iOS 9.0+
  • Swift 5.0

👨🏻‍💻 Usage

Normal loader

Usage

let loader = AWLoader(showInView: view,
                      animationDuration: 1,
                      blurStyle: .light,
                      shape: .rounded(6),
                      containerBackgroundColor: .white,
                      lineWidth: 2,
                      strokeColor: .darkGray)
loader.show()

DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
    loader.hide()
}

Gradient loader

Usage

let gradientLoader = AWGradientLoader(showInView: self.view,
                                      animationDuration: 0.7,
                                      blurStyle: .dark,
                                      shape: .rounded(6),
                                      containerBackgroundColor: .white,
                                      gradientColors: [.purple, .black, .purple],
                                      gradientLocations: [0.2, 0.5, 1],
                                      borderWidth: CGFloat = 1)
gradientLoader.show()

DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
    gradientLoader.hide()
}

If you want the loader to not be a modal meaning not blocking the background content, you can still do:

loader.isUserInteractionEnabled = false

Installation

CocoaPods

pod 'AWLoader'

Carthage

github "Aymenworks/AWLoader"

License

AWLoader is released under the MIT license.

Latest podspec

{
    "name": "AWLoader",
    "version": "1.0.1",
    "summary": "AWLoader is a UI  Compoonent that allows you to integrate a loader that fits your needs within your app.",
    "description": "AWLoader is a UI  Compoonent that allows you to integrate a loader that fits your needs within your app."",
    "homepage": "https://github.com/Aymenworks/AWLoader",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Aymen Rebouh": "[email protected]"
    },
    "requires_arc": true,
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Aymenworks/AWLoader.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "AWLoader/**/*.{swift,h}"
    ],
    "public_header_files": "AWLoader/**/*.h",
    "swift_version": "5.0",
    "social_media_url": "https://twitter.com/aymenworks"
}

Pin It on Pinterest

Share This