Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cemolcay/livefader
@IBDesignable Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.
https://github.com/cemolcay/livefader
audio fader ibdesignable slider swift uicontrol
Last synced: 4 months ago
JSON representation
@IBDesignable Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.
- Host: GitHub
- URL: https://github.com/cemolcay/livefader
- Owner: cemolcay
- License: mit
- Created: 2019-02-12T17:55:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T08:52:59.000Z (9 months ago)
- Last Synced: 2024-09-16T15:45:52.727Z (5 months ago)
- Topics: audio, fader, ibdesignable, slider, swift, uicontrol
- Language: Swift
- Homepage:
- Size: 299 KB
- Stars: 25
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
LiveFader
===`@IBDesignable` Horizontal or vertical UIControl subclass that can start from bottom or middle of the control.
Demo
----
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
----
* 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 `LiveFaderView`s in itself and it's subviews recursively, feel free to add your faders in a stack view or a custom container inside your `LiveFaderScrollView`.SwiftUI Bridge
---You can use it with SwiftUI
https://gist.github.com/cemolcay/8cf7a413e4fcc20bc8c456bc0a5832beApp Store
----This library used in my apps in App Store, check them up!
* [StepBud](https://itunes.apple.com/us/app/stepbud-auv3-midi-sequencer/id1453104408?mt=8) (iOS, AUv3)
* [ArpBud 2](https://apps.apple.com/us/app/arpbud-2-auv3-midi-arpeggiator/id1500403326) (iOS, AUv3, M1)
* [PolyBud](https://apps.apple.com/us/app/polybud-polyrhythmic-sequencer/id1624211288) (iOS, AUv3, M1)