Skip to content

Commit

Permalink
Merge pull request #1 from vince4/youboox
Browse files Browse the repository at this point in the history
Youboox specific needs
  • Loading branch information
vince4 committed Mar 3, 2016
2 parents 6aa3892 + 3237c32 commit 333d383
Show file tree
Hide file tree
Showing 7 changed files with 291 additions and 322 deletions.
4 changes: 2 additions & 2 deletions ASValueTrackingSlider.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ASValueTrackingSlider"
s.version = "0.9.3"
s.version = "0.9.5"
s.summary = "A UISlider subclass that displays the slider value in an animated popUpView"
s.description = <<-DESC
Displays continuously updated values in an animated popUpView
Expand All @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.social_media_url = 'https://twitter.com/ChromophoreApp'

s.platform = :ios, '6.0'
s.source = { :git => "https://github.com/alskipp/ASValueTrackingSlider.git", :tag => "0.9.3" }
s.source = { :git => "https://github.com/vince4/ASValueTrackingSlider.git", :tag => "0.9.5" }
s.source_files = 'ASValueTrackingSlider'
s.requires_arc = true

Expand Down
20 changes: 13 additions & 7 deletions ASValueTrackingSlider/ASValuePopUpView.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,37 @@

@protocol ASValuePopUpViewDelegate <NSObject>
- (CGFloat)currentValueOffset; //expects value in the range 0.0 - 1.0
- (void)colorAnimationDidStart;
- (void)popUpViewDidHide;
- (void)colorDidUpdate:(UIColor *)opaqueColor;
@end

@interface ASValuePopUpView : UIView

@property (weak, nonatomic) id <ASValuePopUpViewDelegate> delegate;
@property (nonatomic) CGFloat cornerRadius;
@property (nonatomic) CGFloat arrowLength;
@property (nonatomic) CGFloat popUpViewWidthPaddingFactor;
@property (nonatomic) CGFloat popUpViewHeightPaddingFactor;
@property (nonatomic) CGFloat positionYOffset;

- (UIColor *)color;
- (void)setColor:(UIColor *)color;
- (UIColor *)opaqueColor;

- (void)setTextColor:(UIColor *)textColor;
- (void)setFont:(UIFont *)font;
- (void)setString:(NSString *)string;
- (void)setText:(NSString *)text;

- (void)setAnimatedColors:(NSArray *)animatedColors withKeyTimes:(NSArray *)keyTimes;

- (void)setAnimationOffset:(CGFloat)offset;
- (void)setArrowCenterOffset:(CGFloat)offset;
- (void)setAnimationOffset:(CGFloat)animOffset returnColor:(void (^)(UIColor *opaqueReturnColor))block;

- (void)setFrame:(CGRect)frame arrowOffset:(CGFloat)arrowOffset text:(NSString *)text;

- (void)animateBlock:(void (^)(CFTimeInterval duration))block;

- (CGSize)popUpSizeForString:(NSString *)string;

- (void)show;
- (void)hide;
- (void)showAnimated:(BOOL)animated;
- (void)hideAnimated:(BOOL)animated completionBlock:(void (^)())block;

@end
Loading

0 comments on commit 333d383

Please sign in to comment.