TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2015 |
Maintained by Wenchao Ding.
A short light-weight voice bubble to let you:
1. Play a short audio (online supported)
2. Show wave effect while playing
3. Customize your own style(wave color、bubble image .etc)
pod "FSVoiceBubble"
FSVoiceBubble.bundle
(Pod/Assets) into your project.#import "FSVoiceBubble.h"
The header file is quite clear:)
@interface FSVoiceBubble : UIView
@property (strong, nonatomic) NSURL *contentURL;
@property (strong, nonatomic) IBInspectable UIColor *waveColor;
@property (strong, nonatomic) IBInspectable UIColor *animatingWaveColor;
@property (strong, nonatomic) IBInspectable UIImage *bubbleImage;
@property (assign, nonatomic) IBInspectable BOOL invert;
@property (assign, nonatomic) IBInspectable BOOL exclusive;
@property (assign, nonatomic) IBInspectable BOOL durationInsideBubble;
@property (assign, nonatomic) IBOutlet id<FSVoiceBubbleDelegate> delegate;
- (void)prepareToPlay;
- (void)play;
- (void)pause;
- (void)stop;
- (void)startAnimating;
- (void)stopAnimating;
@end
@protocol FSVoiceBubbleDelegate <NSObject>
- (void)voiceBubbleDidStartPlaying:(FSVoiceBubble *)voiceBubble;
@end
iOS7.0
Wenchao Ding, [email protected]
FSVoiceBubble is available under the MIT license. See the LICENSE file for more info.