Latest 0.0.1
Homepage https://github.com/cemolcay/LiveFader
License MIT
Platforms ios 9.0, requires ARC
Authors

@IBDesignable Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.

Demo

alt tag

Requirements

  • iOS 9.0+
  • Swift 4.2+
  • Xcode 10.0+

Install

Manual

  • Import the LiveFader.swift file into your codebase

Cocoapods

pod 'LiveFader'

Usage

  • Create a UIView instance in your storyboard and make it’s class to LiveFaderView.
  • Or create a LiveFaderView programmatically.
  • Set the bottom or middle control style with the style property.
  • Set the horizontal or vertical control type with the controlType property.
  • You can bind a @IBAction to the LiveFader‘s valueChanged event from the storyboard or programmatically.
  • You can change the enabled/disabled/highlighted color styles from the @IBInspectable in storyboard or programmatically.
  • LiveFaderView is an open class, so you can subclass it to make it look anything you want, by playing with it’s layers or adding new ones.

LiveFaderScrollView

alt tag

  • Custom scroll view subclass lets you edit all faders with a single pan gesture recognizer.
  • Set its isFaderPanningEnabled property to true.
  • It won’t let you scroll in this mode because you will use the current pan gesture for editing faders instead of scrolling.
  • Finds all LiveFaderViews in itself and it’s subviews recursively, feel free to add your faders in a stack view or a custom container inside your LiveFaderScrollView.

Latest podspec

{
    "name": "LiveFader",
    "version": "0.0.1",
    "summary": "@IBDesignable Horizontal or vertical fader that can start from bottom or middle of the control.",
    "description": "LiveFadern===nn`@IBDesignable` Horizontal or vertical fader that can start from bottom or middle of the control.nnDemon----nn![alt tag](https://github.com/cemolcay/LiveFader/raw/master/demo.gif)nnRequirementsn----nn* iOS 9.0+n* Swift 4.2+n* Xcode 10.0+nnInstalln----nn#### Manualnn* Import the `LiveFader.swift` file into your codebasenn#### Cocoapodsnn```npod 'LiveFader'n```nnUsagen----nn* Create a UIView instance in your storyboard and make it's class to `LiveFaderView`.n* Or create a LiveFaderView programmatically.n* Set the bottom or middle control style with the `style` property.n* Set the horizontal or vertical control type with the `controlType` property.n* You can bind a `@IBAction` to the `LiveFader`'s `valueChanged` event from the storyboard or programmatically.n* You can change the enabled/disabled/highlighted color styles from the `@IBInspectable` in storyboard or programmatically.n* `LiveFaderView` is an open class, so you can subclass it to make it look anything you want, by playing with it's layers or adding new ones.",
    "homepage": "https://github.com/cemolcay/LiveFader",
    "license": "MIT",
    "authors": {
        "cemolcay": "[email protected]"
    },
    "social_media_url": "https://twitter.com/cem_olcay",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/cemolcay/LiveFader.git",
        "tag": "0.0.1"
    },
    "source_files": "LiveFader/LiveFader.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This