Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added Demo/.DS_Store
Binary file not shown.
76 changes: 76 additions & 0 deletions Demo/Demo-macOS.playground/Contents.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
//: Playground - noun: a place where people can play

import Cocoa
import ProgressKit
import PlaygroundSupport

/**
This playground has examples of how to use the UI components.
Enable the assistant editor in Xcode and uncomment
the PlaygroundPage.current.liveView code path for each
component to see it in action.

Modify to test behavior, change colors etc.
*/

PlaygroundPage.current.needsIndefiniteExecution = true

let circularProgress : CircularProgressView = {
let _circularProgressView = CircularProgressView(frame: NSRect(x: 0, y: 0, width: 144, height: 144))
_circularProgressView.progressLayer.borderWidth = 10
_circularProgressView.progress = 0.5 //half way
return _circularProgressView
}()
//PlaygroundPage.current.liveView = circularProgress

let crawler : Crawler = {
//Crawler
let _crawler = Crawler(frame: NSRect(x: 0, y: 0, width: 44, height: 44))
_crawler.startAnimation()
return _crawler
}()
//PlaygroundPage.current.liveView = crawler

let materialProgress : MaterialProgress = {
//Material Progress
let _materialProgress = MaterialProgress(frame: NSRect(x: 0, y: 0, width: 144, height: 144))
_materialProgress.animate = true
return _materialProgress
}()
//PlaygroundPage.current.liveView = materialProgress

let progressBar : ProgressBar = {
//Progress Bar
let _progressBar = ProgressBar(frame: NSRect(x: 0, y: 0, width: 320, height: 22))
_progressBar.progress = 0.5
return _progressBar
}()
//PlaygroundPage.current.liveView = progressBar

let rainbow : Rainbow = {
//Rainbow Progress
let _rainbow = Rainbow(frame: NSRect(x: 0, y: 0, width: 100, height: 100))
_rainbow.animate = true
return _rainbow
}()
//PlaygroundPage.current.liveView = rainbow

let shootingStars : ShootingStars = {
//Rotating Arc
let _shootingStars = ShootingStars(frame: NSRect(x: 0, y: 0, width: 460, height: 10))
_shootingStars.animate = true
return _shootingStars
}()
//PlaygroundPage.current.liveView = shootingStars

let spinner : Spinner = {
//Spinner
let _spinner = Spinner(frame: NSRect(x: 0, y: 0, width: 100, height: 100))
_spinner.animate = true
return _spinner
}()

//PlaygroundPage.current.liveView = spinner



4 changes: 4 additions & 0 deletions Demo/Demo-macOS.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='macos'>
<timeline fileName='timeline.xctimeline'/>
</playground>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Demo/Demo-macOS.playground/timeline.xctimeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Timeline
version = "3.0">
<TimelineItems>
<LoggerValueHistoryTimelineItem
documentLocation = "file:///Users/dcilia/Dev/_oss/ProgressKit/ProgressKit/Demo/Demo-macOS.playground#CharacterRangeLen=8&amp;CharacterRangeLoc=2165&amp;EndingColumnNumber=6&amp;EndingLineNumber=69&amp;StartingColumnNumber=26&amp;StartingLineNumber=68&amp;Timestamp=523196189.085969"
selectedRepresentationIndex = "0"
shouldTrackSuperviewWidth = "NO">
</LoggerValueHistoryTimelineItem>
</TimelineItems>
</Timeline>
28 changes: 28 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// 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: "ProgressKit",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "ProgressKit",
targets: ["ProgressKit"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "ProgressKit",
dependencies: []),
.testTarget(
name: "ProgressKitTests",
dependencies: ["ProgressKit"]),
]
)
25 changes: 25 additions & 0 deletions ProgressKit.xcodeproj/ProgressKitTests_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions ProgressKit.xcodeproj/ProgressKit_Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Loading