ExpandingLayerView 1.0.0

ExpandingLayerView 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Joey.



  • By
  • joeynelson42

ExpandingLayerView 🌈

A fun, possibly (read: hopefully) colorful toggling UIView subclass. I made it for my app Sift and liked it enough to bring it to the wonderful world of Github.

Check out Sift on the App Store!

Requirements

  • Swift 3.0
  • iOS 9.0+
  • Xcode 8.0

Usage

To get the full 2D experience import ExpandingLayerView wherever you would like to spice up your life:

import ExpandingLayerView

Simply initialize an instance of ExpandingLayerView with some colors* and add it to your view hierarchy however you would like:

let layeredView = ExpandingTapView(colors: [UIColor.red, UIColor.white, UIColor.blue])

Then tap away!

*The order of the colors will decide the order of the layers

Meta

Joey Nelson – @jedmondn[email protected]

Distributed under the MIT license. See LICENSE for more information.