AyLoading 4.0.1

AyLoading 4.0.1

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2018年12月
SPM支持SPM

Maintained by Chakery.



AyLoading 4.0.1

  • Chakery

AyLoading

这是一个iOS/macOS的扩展,可以轻松快速地为UIButton(NSButton)、UIView(NSView)和UIBarButtonItem及其子类添加加载状态。

屏幕截图

iOS

macOS

需求

版本 操作系统 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

安装

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

使用

// 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()

许可证

AyLoading 是在 MIT 许可下发布的。有关详细信息,请参阅 LICENSE 文件。