remove BUY prefix from utility classes

parent 9145612e
......@@ -25,8 +25,8 @@
//
#import "Theme+Additions.h"
#import "UIFont+BUYAdditions.h"
#import "UIColor+BUYAdditions.h"
#import "UIFont+Additions.h"
#import "UIColor+Additions.h"
@implementation Theme (Additions)
......
......@@ -41,7 +41,7 @@
#import "Theme+Additions.h"
#import "VariantOptionView.h"
#import "VisualEffectView.h"
#import "UIColor+BUYAdditions.h"
#import "UIColor+Additions.h"
#import "CheckoutButton.h"
@implementation Theme
......
......@@ -26,7 +26,7 @@
@import PassKit;
#import "CheckoutButton.h"
#import "UIImage+BUYAdditions.h"
#import "UIImage+Additions.h"
#import "UIImage+PaymentButton.h"
#import "UIButton+PaymentButton.h"
......
......@@ -25,8 +25,8 @@
//
#import "CheckoutButton.h"
#import "UIColor+BUYAdditions.h"
#import "UIImage+BUYAdditions.h"
#import "UIColor+Additions.h"
#import "UIImage+Additions.h"
@interface CheckoutButton ()
......
......@@ -25,7 +25,7 @@
//
#import "ProductHeaderCell.h"
#import "UIFont+BUYAdditions.h"
#import "UIFont+Additions.h"
#import "Theme+Additions.h"
@interface ProductHeaderCell ()
......
......@@ -29,7 +29,7 @@
#import "Theme+Additions.h"
#import "VariantOptionView.h"
#import "UIFont+BUYAdditions.h"
#import "UIFont+Additions.h"
@interface VariantOptionView ()
......
//
// UIColor+BUYAdditions.h
// UIColor+Additions.h
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -29,7 +29,7 @@
#define BUY_RGB(r, g, b) BUY_RGBA(r, g, b, 1)
#define BUY_RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
@interface UIColor (BUYAdditions)
@interface UIColor (Additions)
/**
* Check if the color is light (brightness of colors combined less than .5)
......
//
// UIColor+BUYAdditions.m
// UIColor+Additions.m
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -24,9 +24,9 @@
// THE SOFTWARE.
//
#import "UIColor+BUYAdditions.h"
#import "UIColor+Additions.h"
@implementation UIColor (BUYAdditions)
@implementation UIColor (Additions)
-(BOOL)isLightColor
{
......
//
// BUYFont.h
// Font+Additions.h
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -26,7 +26,7 @@
@import UIKit;
@interface UIFont (BUYAdditions)
@interface UIFont (Additions)
/**
* Class method to allow system fonts to have increased point sizes from the OS default.
......
//
// BUYFont.m
// BUYFont+Additions.m
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -24,9 +24,9 @@
// THE SOFTWARE.
//
#import "UIFont+BUYAdditions.h"
#import "UIFont+Additions.h"
@implementation UIFont (BUYAdditions)
@implementation UIFont (Additions)
+ (UIFont *)preferredFontForTextStyle:(NSString *)style increasedPointSize:(CGFloat)size
{
......
//
// UIImage+BUYAdditions.h
// UIImage+Additions.h
// Mobile Buy SDK
//
// Created by Shopify.
......@@ -26,7 +26,7 @@
#import <UIKit/UIKit.h>
@interface UIImage (BUYAdditions)
@interface UIImage (Additions)
+ (UIImage *)templateButtonBackgroundImage;
+ (UIImage *)templateImageWithFill:(UIColor *)fill stroke:(UIColor *)stroke edgeInsets:(UIEdgeInsets)edgeInsets;
......
......@@ -24,12 +24,12 @@
// THE SOFTWARE.
//
#import "UIImage+BUYAdditions.h"
#import "UIImage+Additions.h"
static const CGFloat kDefaultCornerRadius = 4.0f;
static const CGFloat kDefaultStrokWidth = 1.0f;
@implementation UIImage (BUYAdditions)
@implementation UIImage (Additions)
+ (UIImage *)templateButtonBackgroundImage
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment