-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring variable names and addinga proper README and CHANGELOG
- Loading branch information
fmoyarivas
committed
Feb 4, 2019
1 parent
1d647aa
commit 0485d32
Showing
39 changed files
with
574 additions
and
1,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,10 @@ | ||
Change Log | ||
========== | ||
Version 1.1.0 | ||
Version 1.0.1 | ||
--- | ||
* Migration to Swift 4.2 | ||
* Refactoring names, adding a README and CHANGELOG. | ||
|
||
Version 1.0.0 | ||
--- | ||
* Releasing first version of the framework | ||
|
||
Version 0.0.7-beta.2 | ||
--- | ||
* Fixing target on navbar and tabbar for iOS 9 and 10 | ||
|
||
Version 0.0.7-beta.1 | ||
--- | ||
* Fixing issues with rotation | ||
|
||
Version 0.0.6 | ||
--- | ||
* Adding Carthage support | ||
|
||
Version 0.0.5 | ||
--- | ||
* Fix Build settings | ||
|
||
Version 0.0.4 | ||
--- | ||
* Fix Build settings | ||
|
||
Version 0.0.3 | ||
--- | ||
* Fix Build settings | ||
|
||
Version 0.0.2 | ||
--- | ||
* Supporting Cocoapods | ||
|
||
Version 0.0.1 | ||
--- | ||
* Initial release | ||
* First version of the framework | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,72 @@ | ||
# SpinKit | ||
Beautiful spinners based on [tobiasahlin's CSS SpinKit](https://github.com/tobiasahlin/SpinKit). Demystifying iOS Animations | ||
[![Download](https://img.shields.io/cocoapods/v/SpinKitFramework.svg)](https://cocoapods.org/pods/SpinKitFramework) | ||
[![CocoaPods platforms](https://img.shields.io/cocoapods/p/SpinKitFramework.svg)](https://cocoapods.org/pods/SpinKitFramework) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
|
||
Based on [tobiasahlin's CSS SpinKit](https://github.com/tobiasahlin/SpinKit), SpinKit is a friendly framework that provides with a set of spinners or loaders. They're perfect to use when your App faces a heavy load task or to help with a transition between scenes. | ||
|
||
## Usage | ||
Every `Spinner` is a view that implements the `SpinnerType` interface and exposes four properties to customize it. To start a spinner, simply call its `startLoading` method. Here's some sample code: | ||
|
||
```swift | ||
let spinner = WaveSpinner(primaryColor: selectedColor, | ||
frame: CGRect(origin: .zero, | ||
size: CGSize(width: 50, | ||
height: 50))) | ||
|
||
spinner.startLoading() | ||
``` | ||
<img src="/resources/wave_spiner.gif" width="100" title="Wave Spinner"> | ||
|
||
## Customization | ||
You can change its color, speed of the animation and modify its content insets: | ||
```swift | ||
spinner.primaryColor = UIColor.green | ||
spinner.contentInsets = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20) | ||
spinner.animationSpeed = 3 // Speeds up the animation by 3 | ||
``` | ||
|
||
**Note:** Don't change these properties once the spinner has started the animation. Some of them are used as part of the animation and it might not have the expected result. | ||
|
||
You can also set the `isTranslucent` property to false (default is true). This makes the view take the `primaryColor` and show the spinner in a white tint. | ||
|
||
* Translucent spinner | ||
<img src="/resources/double_bounce.gif" width="100" title="Wave Spinner"> | ||
|
||
* Opaque spinner | ||
<img src="/resources/double_bounce_translucent.gif" width="100" title="Wave Spinner"> | ||
|
||
## Available Spinners | ||
Choose the one you like the most ;) | ||
#### Rotating plane | ||
<img src="/resources/rotating_plane.gif" width="100" title="Rotating plane spinner"> | ||
|
||
#### Double bounce | ||
<img src="/resources/double_bounce_red.gif" width="100" title="Double bounce spinner"> | ||
|
||
#### Wave | ||
<img src="/resources/wave_red.gif" width="100" title="Wave spinner"> | ||
|
||
#### Wandering cubes | ||
<img src="/resources/wandering_cubes.gif" width="100" title="Wandering cubes spinner"> | ||
|
||
#### Pulse | ||
<img src="/resources/pulse.gif" width="100" title="Pulse spinner"> | ||
|
||
#### Chasing dots | ||
<img src="/resources/chasing_dots.gif" width="100" title="Chasing dots spinner"> | ||
|
||
#### Three bounce | ||
<img src="/resources/three_bounce.gif" width="100" title="Three bounce spinner"> | ||
|
||
#### Circle | ||
<img src="/resources/circle.gif" width="100" title="Circle spinner"> | ||
|
||
#### Cube grid | ||
<img src="/resources/cube_grid.gif" width="100" title="Cube grid spinner"> | ||
|
||
#### Fading circle | ||
<img src="/resources/fading_circle.gif" width="100" title="Fading circle spinner"> | ||
|
||
#### Folding cube | ||
<img src="/resources/folding_cube_spinner_red.gif" width="100" title="Folding cube spinner"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,5 @@ target 'SpinKitExample' do | |
|
||
# Pods for SpinKit | ||
pod 'ChameleonFramework/Swift' | ||
pod 'SpinKitFramework' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.