• Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An oddly-named UISlider subclass which mimics the EQ slider found on Twitter's #music app.

LARSBar

A UISlider subclass mimicking the awesome EQ slider found on Twitter's #music app. Named like this because my friends kept calling it this - and I really can't come up with anything better.

You'll need to bring your own assets for the frame, track and slider thumb, or just use the ones I've created in the sample project - I don't care. I've included the PSD files.

Excuse the crummy gif screen capture quality, the performance is quite good and there are no gaps in the animation:
LARSBar in action

Interface

Pretty simple interface:

/** The value for the left channel eq in the range of 0 to 1.
 
 @warning This value is clipped at 1.
 */
@property (nonatomic, assign) CGFloat leftChannelLevel;

/** The value for the right channel eq in the range of 0 to 1.
 
 @warning This value is clipped at 1.
 */
@property (nonatomic, assign) CGFloat rightChannelLevel;

/** The inactive color for the eq. This is the color that the eq light takes on past the right side of the slider thumb knob.
 */
@property (nonatomic, strong) UIColor *inactiveColor;

/** The active color for the eq when it is available to be lit up. This is the color that the eq light takes on before the slider thumb knob.
 */
@property (nonatomic, strong) UIColor *activeColor;

/** The EQ light glow colors. The number of light sections the light takes on depends on how many colors you pass in here.
 */
@property (nonatomic, copy) NSArray *glowColors;

In addition to all of the above, since this is just a UISlider subclass, you can treat it just like you would a normal UISlider (Using UIAppearance, etc).

License

MIT License. Go nuts.

Homepage

If you're not on github right now reading this, you can find the page here: https://github.com/larsacus/LARSBar

Other

Demo project uses Novocaine for audio input. Other than that - have fun.

by Lars (@theonlylars)

More Repositories

1

LARSAdController

Lightweight ad mediation for iOS to properly manage multiple ad networks dynamically including iAd and Google ads.
Objective-C
269
star
2

PlaceKit

Content placeholders, randomized data and other helpers for early dev, testing and proto work.
Objective-C
136
star
3

TOLDeveloperAds

Easily create beautiful banners for all of your App Store apps with a single line of code.
Objective-C
45
star
4

LARSTorch

Lightweight AVFoundation-based interface to access your iDevice's LED torch.
Objective-C
14
star
5

DeceptiCam

Decepticam is a covert camera that is instantly available when launched and is activated by putting your iPhone up to your ear, as if taking a phone call. DeceptiCam will start shooting photos at intervals or start capturing video when the proximity sensor is activated (as if taking a phone call), and ends and saves the file when the proximity sensor is no longer covered. This app will never be approved into Apple's App Store due to the blatant mimicking of iPhone's phone interface. _**Kind of a fun project - needs a lot of work to be truly useable.**_
Objective-C
13
star
6

LARSSlidingPicker

An iOS Subclass of UIPicker modified to mimic the native iOS keyboard. Also pairs with a second SlidingPicker class to toggle one after the other. Accepts a riding auxiliary UIView on top of the picker.
Objective-C
6
star
7

LARSMorse-Strobe

Objective-C
4
star
8

CoreGraphicsDynamicAnimation

Dynamic drawRect: animation using CoreAnimation for interpolation.
Objective-C
3
star
9

Light2

LightΒ² is a simpler flashlight for all of your iDevices. Really no reason *not* to put this out there... Go ahead - just try and submit this to the app store.
Objective-C
3
star
10

TOLPowerSource

Objective-C abstraction of IOKit's power sources C API on OSX to monitor battery and other power sources. Built to support UPSs. May become popular if we ever get IOKit on iOS.
Objective-C
3
star
11

swift-yolo

http://larsacus.github.io/swift-yolo/ I hope you thought long and hard before using swift's force-unwrapped optionals.
HTML
2
star
12

Outage-Mac

A tiny mac app that monitors your UPS and will log the time you are on battery power.
Objective-C
1
star
13

heatmap-tile-toolbox

Rewrites broken Strava heatmap requests into new-style auth endpoints.
HTML
1
star
14

theonlylars.com

JavaScript
1
star
15

DestinyBrowser

Explore and browse the Bungie Destiny world asset database files visually.
JavaScript
1
star
16

LARSSlideShow

A photo slideshow plugin written in javascript that will fade and scale between images of different sizes in a container div. Still needs some work.
JavaScript
1
star