FluidHighlighter easily implements the Fluid Interface based highlighting effect on UIView and UIControl.
let view = UIView()
view.fh.enable(normalColor: UIColor.white, highlightedColor: UIColor.gray)
let control = UIControl()
control.fh.controlEnable(normalColor: UIColor.white, highlightedColor: UIColor.gray)
let view = UIView()
view.fh.disable()
let control = UIControl()
control.fh.controlDisable()
Parameter | Type | Description |
---|---|---|
normalColor |
UIColor |
Background color |
highlightedColor |
UIColor |
|
selectedColor |
UIColor |
Background color of selected state, only in UIControl |
highlightedOptions |
AnimationOptions |
|
highlightedDelay |
TimeInterval |
|
highlightedDuration |
TimeInterval |
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'FluidHighlighter'
end
github "k-lpmg/FluidHighlighter"
These works are available under the MIT license. See the LICENSE file for more info.