Fluid Interface based highlighting effect on UIView and UIControl.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Initial commit Feb 6, 2019
FluidHighlighter.xcodeproj
Sources/FluidHighlighter Delete selectedColor parameter in UIView+FH Feb 6, 2019
.gitignore Initial commit Feb 6, 2019
.swift-version
FluidHighlighter.h
FluidHighlighter.podspec Initial commit Feb 6, 2019
Info.plist
LICENSE Initial commit Feb 6, 2019
README.md

README.md

FluidHighlighter

Cocoapods Carthage compatible Swift GitHub license

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

Introduction

Usage

Highlighting enable

view.fh.enable(normalColor: UIColor.white, highlightedColor: UIColor.gray)
control.fh.enable(normalColor: UIColor.white, highlightedColor: UIColor.gray)

Highlighting disable

view.fh.disable()
control.fh.disable()

Enable Parameters

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

Installation

CocoaPods (iOS 8+)

platform :ios, '8.0'
use_frameworks!

target 'MyApp' 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.