Latest 4.0.1
Homepage https://github.com/Chakery/AyLoading
License MIT
Platforms ios 8.0, osx 10.10
Authors

this is a extension for iOS/macOS, which can add a loading state to UIButton(NSButton) UIView(NSView) UIBarButtonItem and its subclasses easily and quickly.

Screenshot

iOS

macOS

Requirements

version OS swift
2.0.1 iOS8+, macOS10.10+ 3.x
3.0.0 iOS8+, macOS10.10+ 4.0
4.0.1 iOS8+, macOS10.10+ 4.2

Installation

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
swift_version = '4.2'

target 'MyApp' do
  pod 'AyLoading', '4.0.1'
end

Using

// UIView or NSView
view.ay.startLoading(message: "Loading...")
view.ay.stopLoading()

// UIButton or NSButton
btn.ay.startLoading()
btn.ay.stopLoading()

// UIBarButtonItem
navigationItem.leftBarButtonItem.ay.startLoading()
navigationItem.leftBarButtonItem.ay.stopLoading()

License

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

Latest podspec

{
    "name": "AyLoading",
    "version": "4.0.1",
    "summary": "loading...",
    "homepage": "https://github.com/Chakery/AyLoading",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Chakery": "[email protected]"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/Chakery/AyLoading.git",
        "tag": "4.0.1"
    },
    "source_files": [
        "Classes",
        "Classes/**/*"
    ],
    "osx": {
        "exclude_files": [
            "Classes/UIView+Indicator.swift",
            "Classes/UIButton+Loading.swift",
            "Classes/UIBarButtonItem+Loading.swift",
            "Classes/iOS+IndicatorView.swift",
            "Classes/UIView+Animations.swift"
        ]
    },
    "ios": {
        "exclude_files": [
            "Classes/NSButton+Loading.swift",
            "Classes/NSView+Indicator.swift",
            "Classes/macOS+IndicatorView.swift",
            "Classes/NSView+Animations.swift"
        ]
    }
}

Pin It on Pinterest

Share This