Home

Awesome

FluidHighlighter

Build Status Swift Cocoapods Carthage compatible

FluidHighlighter easily implements the Fluid Interface based highlighting effect on UIView and UIControl.

Introduction

<img src="https://user-images.githubusercontent.com/15151687/52348602-13489500-2a68-11e9-9997-343d9401880c.gif" width="375" height="667">

Usage

Highlighting enable

let view = UIView()
view.fh.enable(normalColor: UIColor.white, highlightedColor: UIColor.gray)

let control = UIControl()
control.fh.controlEnable(normalColor: UIColor.white, highlightedColor: UIColor.gray)

Highlighting disable

let view = UIView()
view.fh.disable()

let control = UIControl()
control.fh.controlDisable()

Enable Parameters

ParameterTypeDescription
normalColorUIColorBackground color
highlightedColorUIColor
selectedColorUIColorBackground color of selected state, only in UIControl
highlightedOptionsAnimationOptions
highlightedDelayTimeInterval
highlightedDurationTimeInterval

Installation

CocoaPods (iOS 8+)

platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'FluidHighlighter'
end

Carthage (iOS 8+)

github "k-lpmg/FluidHighlighter"

LICENSE

These works are available under the MIT license. See the LICENSE file for more info.