Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienwindal committed Feb 26, 2014
0 parents commit 5c4e632
Show file tree
Hide file tree
Showing 27 changed files with 2,051 additions and 0 deletions.
15 changes: 15 additions & 0 deletions FRDLivelyButton.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = "FRDLivelyButton"
s.version = "1.0"
s.summary = "Lively button."
s.description = "CWStatusBarNotification is a library allows you to present a beautiful text-based notification in the status bar."
s.homepage = "http://github.com/sebastienwindal/FRDLivelyButton"
s.screenshots = "https://raw.github.com/sebastienwindal/FRDLivelyButton/master/screenshots/screenshot.png"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Sebastien Windal" => "[email protected]" }
s.platform = :ios, '7.0'
s.source = { :git => "https://github.com/sebastienwindal/FRDLivelyButton.git",
:tag => s.version.to_s }
s.source_files = 'FRDLivelyButton'
s.requires_arc = true
end
47 changes: 47 additions & 0 deletions FRDLivelyButton/FRDLivelyButton.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// FRDLivelyButton.h
// FRDLivelyButton
//
// Created by Sebastien Windal on 2/24/14.
//
//

#import <UIKit/UIKit.h>


typedef enum {
kFRDLivelyButtonStyleHamburger,
kFRDLivelyButtonStyleClose,
kFRDLivelyButtonStylePlus,
kFRDLivelyButtonStyleCirclePlus,
kFRDLivelyButtonStyleCircleClose
} kFRDLivelyButtonStyle;

@interface FRDLivelyButton : UIButton

-(kFRDLivelyButtonStyle) buttonStyle;

-(void) setStyle:(kFRDLivelyButtonStyle)style animated:(BOOL)animated;

@property (nonatomic, strong) NSDictionary *options;
+(NSDictionary *) defaultOptions;

// button customization options:

// scale to apply to the button CGPath(s) when the button is pressed. Default is 0.9:
extern NSString *const kFRDLivelyButtonHighlightScale;
// the button CGPaths stroke width, default 1.0f pixel
extern NSString *const kFRDLivelyButtonLineWidth;
// the button CGPaths stroke color, default is black
extern NSString *const kFRDLivelyButtonColor;
// the button CGPaths stroke color when highlighted, default is light gray
extern NSString *const kFRDLivelyButtonHighlightedColor;
// duration in second of the highlight (pressed down) animation, default 0.1
extern NSString *const kFRDLivelyButtonHighlightAnimationDuration;
// duration in second of the unhighlight (button release) animation, defualt 0.15
extern NSString *const kFRDLivelyButtonUnHighlightAnimationDuration;
// duration in second of the style change animation, default 0.3
extern NSString *const kFRDLivelyButtonStyleChangeAnimationDuration;


@end
Loading

0 comments on commit 5c4e632

Please sign in to comment.