Glisten is a simple UIView extension that allows you to add a highlight on top of views. The recommended use case for Glisten is when you're attempting to add a subtle, white highlight to a view with rounded corners and you're not satisfied with just a straight line.
The effect is subtle, but notice how the highlight partially follows the rounded corners of our view:
The line width and color are configurable, so you can make it more or less dramatic. Glisten also works for straight-edged views though that use case isn't particularly interesting.
Add the following to your Podfile:
pod 'Glisten'
Add the following to your Cartfile:
github "comyarzaheri/Glisten" "master"
import Glisten
// Set the default glisten
view.glisten()
// Or use the following to configure the highlight more precisely:
view.glisten(cornerRadius: 8.0, lineWidth: 2.0, color: UIColor.whiteColor())
- iOS 8.0 or higher
Glisten is available under the MIT License.