2

GitHub - yutailang0119/ProgressSpinnerKit: A library to display an ActivityIndic...

 5 years ago
source link: https://github.com/yutailang0119/ProgressSpinnerKit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Swift 4.1 Swift Package Manager Lincense

ProgressSpinnerKit.gif

A library to display an ActivityIndicator for CLI.
Motivated by

A Work In Progress

ProgressSpinnerKit is still in active development.

Dome

Installation

Swift Package Manager

// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "test",
    dependencies: [
        .package(url: "https://github.com/yutailang0119/ProgressSpinnerKit", from: "0.1.0"),
    ],
    targets: [
        .target(name: "targetName", dependencies: ["ProgressSpinnerKit"]),
    ]
)

https://github.com/apple/swift-package-manager

Usege

import Basic
import ProgressSpinnerKit

let spinner = createProgressSpinner(forStream: Basic.stdoutStream, header: " Loading:")
spinner.start()
// Something on the main thread.
spinner.stop()

Author

Yutaro Muta

License

ProgressSpinnerKit is available under the MIT license. See the LICENSE file for more info.
This software includes the work that is distributed in the Apache License 2.0.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK