Skip to content

marklise/Skycons-Swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Skycons-Swift

This is a port of the animated HTML5 canvas weather icons - Skycons from forecast.io. Credit goes to zachwaugh and miwand as this project is originally translated from work done by zachwaugh and Swift 2.x port from miwand.

I did this so that those wanting to incorporate these works into the latest version of Swift could do it quickly.

Usage

Create a SkyconView, with a frame in mind. Set the type of weather and color, then use as you would use a UIView. It will be animated by default and the animation can be turned off by setting the new that you have created to pause

let iconView = SkyconView(frame: frame)
iconView.setType = .ClearDay
iconView.setColor = UIColor.cyanColor()
self.view.addSubview(iconView)
iconView.pause To pause the animation when needed

Gif

Skycons

License

This is released into the public domain, same as the originals.

About

Skycons for iOS - Swift Edition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%