在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):KyoheiG3/SpringIndicator开源软件地址(OpenSource Url):https://github.com/KyoheiG3/SpringIndicator开源编程语言(OpenSource Language):Swift 96.0%开源软件介绍(OpenSource Introduction):SpringIndicatorAppetize's Demo
Requirements
How to Install SpringIndicatorCocoapodsAdd the following to your pod "SpringIndicator" CarthageAdd the following to your github "KyoheiG3/SpringIndicator" Swift Package ManagerTo install BulletinBoard using the Swift Package Manager, add this dependency to your Package.swift file: .package(url: "https://github.com/KyoheiG3/SpringIndicator.git", from: "5.1.0") UsageExampleAdd Code let indicator = SpringIndicator(frame: CGRect(x: 100, y: 100, width: 60, height: 60))
view.addSubview(indicator)
indicator.start() RefreshIndicator let refreshControl = RefreshIndicator()
refreshControl.addTarget(self, action: "onRefresh", forControlEvents: .ValueChanged)
scrollView.addSubview(refreshControl) Exit refresh refreshControl.endRefreshing() Can use Interface Builder VariableIndicator@IBInspectable var animating: Bool
@IBInspectable var lineWidth: CGFloat
@IBInspectable var lineColor: UIColor
var lineColors: [UIColor]
@IBInspectable var lineCap: Bool
@IBInspectable var rotateDuration: Double
RefreshIndicatorlet indicator: SpringIndicator
var isRefreshing: Bool
FunctionIndicatorvar isSpinning: Bool
func start()
func stop(with: Bool = default, completion: ((SpringIndicator) -> Swift.Void)? = default)
func strokeRatio(_ ratio: CGFloat)
Refresherfunc endRefreshing()
AuthorKyohei ItoFollow me |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论