Latest 0.1.0
Homepage https://github.com/rashwanlazkani/RLoad
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

RLoad

Requirements

Installation

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

pod 'RLoad'

There are four methods you can use:

create(x: CGFloat, y: CGFloat, radius: CGFloat, begin: Bool)

Creates the indicator. Four parameters:

x: x-position of the indicator
y: y-position of the indicator
radis: radius of the indicator
begin: if you want to indicator to start
start()

Starts the indicator

stop()

Stops the indicator

remove()

Removes the indicator from your view

To quickly get started, simply just add the following:

let rload = RLoadIndicator()
rload.create(x: view.frame.midX - 50, y: view.frame.midY - 50, radius: 50, begin: true)
view.addSubview(rload)

Your´re able to change the colors by either:

Adding additional colors:
rload.colors.append(.gray)

Or adding a new list:
rload.colors = [.green, .gray, .magenta]

Author

rashwanlazkani, [email protected]

License

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

Latest podspec

{
    "name": "RLoad",
    "version": "0.1.0",
    "summary": "A loading indicator view for iOS apps.",
    "swift_version": "4.2",
    "description": "TODO: A loading indicator view for iOS apps. The indicator changes color after each loop and youu00b4re able to change the colors.",
    "homepage": "https://github.com/rashwanlazkani/RLoad",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "rashwanlazkani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rashwanlazkani/RLoad.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RLoad/Classes/*.swift",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This