CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2015 |
SPMSupports SPM | ✗ |
Maintained by Christopher Luu.
(The quality issues are GIF-related, not related to this library)
AbstractView
is a simple UIView
subclass that you can use as a background view to give some flavor compared to having just a plain white background. The way it works is by adding a bunch of abstract shapes (ovals, rectangles, etc.) and putting a UIVisualEffectView
over the top of it. It’s highly customizable, and can be extended in many ways, including the addition of other abstract shapes.
ShapeInitializer
closuresSimply add an AbstractView
into your view hierarchy. Note that any subviews should be added to the AbstractView
’s contentView
let abstractView = AbstractView()
self.addSubview(abstractView)
abstractView.contentView.addSubview(mySubview)
Customize the number of abstract shapes by using the shapeCount
property:
abstractView.shapeCount = 20
You can customize the size of the abstract shapes using the minShapeSize
and maxShapeSize
properties:
abstractView.minShapeSize = 50
abstractView.maxShapeSize = 100
Change the set of colors that can be assigned to the abstract shapes by using the colorPalette
property:
abstractView.colorPalette = [UIColor(red: 0.0, green: 0.0, blue: 1.0, alpha: 1.0), UIColor(red: 0.0, green: 0.0, blue: 0.8, alpha: 1.0)]
Take a look at the Example project for more examples of how the abstract view can be customized.