Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.03 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.03 KB

Effects

A CoreGraphics and CoreAnimation experiment. Much of this is WIP.

To use one of the custom UIView subclasses, simply add a UIView to a Storyboard scene and set the UIView's class in the Identity Inspector. Set the IBInspectable properties and enjoy!

You can also create one and add it to the view heirarchy manually:

let starfieldView = StarfieldView(frame: self.view.frame)
starfieldView.starColor = UIColor.whiteColor()
starfieldView.canvasColor = UIColor.blackColor()
view.addSubview(starfieldView)

Here's what StarfieldView looks like:

StarfieldView in action.

LaserShowView looks like this:

LaserShowView in action.

  • Animations can now be controlled via a protocol method. Fire the animations whenever you want.
  • Lasers are randomly positioned throughout the view's frame between each run of the animations.
  • Implicit animations are disabled now (unlike the StarfieldView).
  • Control the pace of the lasers using the laserLengthLagTime.
  • Enjoy!