Skip to content

Commit

Permalink
Updating README cleaning up indents
Browse files Browse the repository at this point in the history
  • Loading branch information
Collin Ruffenach committed Feb 13, 2014
1 parent f0653c4 commit a7d7c40
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
50 changes: 25 additions & 25 deletions CRToast/CRToast.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ @interface CRToast : NSObject
NSString *const kCRToastNotificationPresentationTypeKey = @"kCRToastNotificationPresentationTypeKey";

NSString *const kCRToastAnimationTypeKey = @"kCRToastAnimationTypeKey";
NSString *const kCRToastAnimationInStyleKey = @"kCRToastAnimationInStyleKey";
NSString *const kCRToastAnimationOutStyleKey = @"kCRToastAnimationOutStyleKey";
NSString *const kCRToastAnimationInStyleKey = @"kCRToastAnimationInStyleKey";
NSString *const kCRToastAnimationOutStyleKey = @"kCRToastAnimationOutStyleKey";

NSString *const kCRToastAnimationInTimeIntervalKey = @"kCRToastAnimateInTimeInterval";
NSString *const kCRToastAnimationInTimeIntervalKey = @"kCRToastAnimateInTimeInterval";
NSString *const kCRToastTimeIntervalKey = @"kCRToastTimeIntervalKey";
NSString *const kCRToastAnimationOutTimeIntervalKey = @"kCRToastAnimateOutTimeInterval";
NSString *const kCRToastAnimationOutTimeIntervalKey = @"kCRToastAnimateOutTimeInterval";

NSString *const kCRToastAnimationSpringDampingKey = @"kCRToastAnimationSpringDampingKey";
NSString *const kCRToastAnimationSpringInitialVelocityKey = @"kCRToastAnimateSpringVelocityKey";
NSString *const kCRToastAnimationSpringDampingKey = @"kCRToastAnimationSpringDampingKey";
NSString *const kCRToastAnimationSpringInitialVelocityKey = @"kCRToastAnimateSpringVelocityKey";

NSString *const kCRToastTextKey = @"kCRToastTextKey";
NSString *const kCRToastFontKey = @"kCRToastFontKey";
Expand All @@ -154,22 +154,22 @@ @interface CRToast : NSObject
static CRToastAnimationType kCRAnimationTypeDefault = CRToastAnimationTypeLinear;
static CRToastAnimationStyle kCRInAnimationStyleDefault = CRToastAnimationStyleTop;
static CRToastAnimationStyle kCROutAnimationStyleDefault = CRToastAnimationStyleBottom;
static NSTimeInterval kCRAnimateInTimeIntervalDefault = 0.25;
static NSTimeInterval kCRTimeIntervalDefault = 2.0f;
static NSTimeInterval kCRAnimateOutTimeIntervalDefault = 0.25;
static NSTimeInterval kCRAnimateInTimeIntervalDefault = 0.25;
static NSTimeInterval kCRTimeIntervalDefault = 2.0f;
static NSTimeInterval kCRAnimateOutTimeIntervalDefault = 0.25;

static CGFloat kCRSpringDampingDefault = 0.4;
static CGFloat kCRSpringInitialVelocityDefault = 1.0;
static CGFloat kCRSpringDampingDefault = 0.4;
static CGFloat kCRSpringInitialVelocityDefault = 1.0;

static NSString * kCRTextDefault = @"";
static UIFont * kCRFontDefault = nil;
static UIColor * kCRTextColorDefault = nil;
static NSTextAlignment kCRTextAlignmentDefault = NSTextAlignmentCenter;
static UIColor * kCRTextShadowColorDefault = nil;
static CGSize kCRTextShadowOffsetDefault;
static NSString * kCRTextDefault = @"";
static UIFont * kCRFontDefault = nil;
static UIColor * kCRTextColorDefault = nil;
static NSTextAlignment kCRTextAlignmentDefault = NSTextAlignmentCenter;
static UIColor * kCRTextShadowColorDefault = nil;
static CGSize kCRTextShadowOffsetDefault;

static UIColor * kCRBackgroundColorDefault = nil;
static UIImage * kCRImageDefault = nil;
static UIColor * kCRBackgroundColorDefault = nil;
static UIImage * kCRImageDefault = nil;

#pragma mark - Layout Helper Functions

Expand Down Expand Up @@ -255,15 +255,15 @@ + (void)setDefaultOptions:(NSDictionary*)defaultOptions {
if (defaultOptions[kCRToastNotificationPresentationTypeKey]) kCRNotificationPresentationTypeDefault = [defaultOptions[kCRToastNotificationPresentationTypeKey] integerValue];

if (defaultOptions[kCRToastAnimationTypeKey]) kCRAnimationTypeDefault = [defaultOptions[kCRToastAnimationTypeKey] integerValue];
if (defaultOptions[kCRToastAnimationInStyleKey]) kCRInAnimationStyleDefault = [defaultOptions[kCRToastAnimationInStyleKey] integerValue];
if (defaultOptions[kCRToastAnimationOutStyleKey]) kCROutAnimationStyleDefault = [defaultOptions[kCRToastAnimationOutStyleKey] integerValue];
if (defaultOptions[kCRToastAnimationInStyleKey]) kCRInAnimationStyleDefault = [defaultOptions[kCRToastAnimationInStyleKey] integerValue];
if (defaultOptions[kCRToastAnimationOutStyleKey]) kCROutAnimationStyleDefault = [defaultOptions[kCRToastAnimationOutStyleKey] integerValue];

if (defaultOptions[kCRToastAnimationInTimeIntervalKey]) kCRAnimateInTimeIntervalDefault = [defaultOptions[kCRToastAnimationInTimeIntervalKey] doubleValue];
if (defaultOptions[kCRToastAnimationInTimeIntervalKey]) kCRAnimateInTimeIntervalDefault = [defaultOptions[kCRToastAnimationInTimeIntervalKey] doubleValue];
if (defaultOptions[kCRToastTimeIntervalKey]) kCRTimeIntervalDefault = [defaultOptions[kCRToastTimeIntervalKey] doubleValue];
if (defaultOptions[kCRToastAnimationOutTimeIntervalKey]) kCRAnimateOutTimeIntervalDefault = [defaultOptions[kCRToastAnimationOutTimeIntervalKey] doubleValue];
if (defaultOptions[kCRToastAnimationOutTimeIntervalKey]) kCRAnimateOutTimeIntervalDefault = [defaultOptions[kCRToastAnimationOutTimeIntervalKey] doubleValue];

if (defaultOptions[kCRToastAnimationSpringDampingKey]) kCRSpringDampingDefault = [defaultOptions[kCRToastAnimationSpringDampingKey] floatValue];
if (defaultOptions[kCRToastAnimationSpringInitialVelocityKey]) kCRSpringInitialVelocityDefault = [defaultOptions[kCRToastAnimationSpringInitialVelocityKey] floatValue];
if (defaultOptions[kCRToastAnimationSpringDampingKey]) kCRSpringDampingDefault = [defaultOptions[kCRToastAnimationSpringDampingKey] floatValue];
if (defaultOptions[kCRToastAnimationSpringInitialVelocityKey]) kCRSpringInitialVelocityDefault = [defaultOptions[kCRToastAnimationSpringInitialVelocityKey] floatValue];

if (defaultOptions[kCRToastTextKey]) kCRTextDefault = defaultOptions[kCRToastTextKey];
if (defaultOptions[kCRToastFontKey]) kCRFontDefault = defaultOptions[kCRToastFontKey];
Expand Down
2 changes: 1 addition & 1 deletion CRToastDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Cezary Wojcik";
ORGANIZATIONNAME = "Collin Ruffenach";
TargetAttributes = {
5E2FFB5218367C01003333F8 = {
DevelopmentTeam = QMZH6X9D3C;
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# CWStatusBarNotification
# CRToast

`CWStatusBarNotification` is a library that allows you to easily create notifications that appear on the status bar.
`CRToast` is a library that allows you to easily create notifications that appear on the status bar. CRToast was originally based on [CWStatusBarNotification](https://github.com/cezarywojcik/CWStatusBarNotification) but the direction I found helpful wasn't something CWStatusBarNotification wanted to embrace.

![demo](screenshots/demo.gif)

## Requirements

`CWStatusBarNotification` uses ARC and requires iOS 7.0+. Works for iPhone and iPad.
`CRToast` uses ARC and requires iOS 7.0+. Works for iPhone and iPad.

## Installation

Expand Down

0 comments on commit a7d7c40

Please sign in to comment.