SwishControl 0.1.0

SwishControl 0.1.0

LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2015

Maintained by Joakim Gyllström.

  • By
  • Joakim Gyllstrom

SwishControl is a category on UIControl for adding sound effects to UIControlEvents.


Import the SwishControl header

#import <SwishControl/SwishControl.h>

SwishControl uses AudioToolbox which supports aif, caf and wav.
This is how you add a sound effect for all UIButtons

NSString *clickPath = [[NSBundle mainBundle] pathForResource:@"click" ofType:@"aif"];
[[UIButton appearance] bs_setAudioWithPath:clickPath forEvent:UIControlEventTouchUpInside];

Of course it can be applied to a single UIControl as well, if you don't want to set a sound for all of them.


iOS, bananas and a bunch of sound effects


SwishControl is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SwishControl"


Joakim Gyllström


SwishControl is available under the MIT license. See the LICENSE file for more info.