Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chakery/AyLoading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

28 Commits

Repository files navigation

AyLoading

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.

About

loading...

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /