Skip to content

Commit

Permalink
added docstring for init of spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicegginton committed Sep 26, 2019
1 parent b966e74 commit 848396a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Spinner/Spinner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ public final class Spinner {
/// Format of the Spinner
var format: String

/**
Create new spinner

- Parameter _: SpinnerPattern - The pattern the spinner will animate over
- Parameter _: String - The text the spinner will display
- Parameter speed: Double - The speed the spinner will animate at - default is defined per SpinnerPattern
- Parameter color: Color - The color the animated pattern will render as - default is white
- Parameter: format: String - The format of the spinner - default is "{S} {T}"
*/
public init(_ pattern: SpinnerPattern, _ text: String = "", speed: Double? = nil, color: Color = .white, format: String = "{S} {T}") {
self.pattern = pattern
self.text = text
Expand Down

0 comments on commit 848396a

Please sign in to comment.