A simple Swift UIView
component that renders a simple gradient in the view, from full background color to a darker color, determined by the view background color and a percentage. The component also allows to configure the location of the darker color breakpoint.
For a complete example see the enclosed project.
- designable in Interface Builder
- customizable darken percentage (default 5%)
- customizable gradient breakpoint (default 85%)