https://github.com/k-lpmg/fluidhighlighter
Fluid Interface based highlighting effect on UIView and UIControl
https://github.com/k-lpmg/fluidhighlighter
fluid highlighting ios uicontrol uiview
Last synced: 2 months ago
JSON representation
Fluid Interface based highlighting effect on UIView and UIControl
- Host: GitHub
- URL: https://github.com/k-lpmg/fluidhighlighter
- Owner: k-lpmg
- License: mit
- Created: 2019-02-06T14:47:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-12T01:45:17.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T13:02:12.699Z (2 months ago)
- Topics: fluid, highlighting, ios, uicontrol, uiview
- Language: Swift
- Homepage:
- Size: 29.3 KB
- Stars: 19
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FluidHighlighter
[](https://travis-ci.org/k-lpmg/FluidHighlighter)

[](https://cocoapods.org/pods/FluidHighlighter)
[](https://github.com/Carthage/Carthage)FluidHighlighter easily implements the Fluid Interface based highlighting effect on UIView and UIControl.
## Introduction
## Usage
#### Highlighting enable
```swift
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
```swift
let view = UIView()
view.fh.disable()let control = UIControl()
control.fh.controlDisable()
```#### 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+)
```ruby
platform :ios, '8.0'
use_frameworks!target '' do
pod 'FluidHighlighter'
end
```#### Carthage (iOS 8+)
```ruby
github "k-lpmg/FluidHighlighter"
```## LICENSE
These works are available under the MIT license. See the [LICENSE][license] file
for more info.[license]: LICENSE