Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
9e0b896b
Commit
9e0b896b
authored
May 19, 2016
by
Gabriel O'Flaherty-Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete duplicate utils classes, move Product View code into proper folder
parent
fae235ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
0 additions
and
161 deletions
+0
-161
project.pbxproj
.../Mobile Buy SDK Advanced Sample.xcodeproj/project.pbxproj
+0
-0
ProductViewControllerThemeStyleTableViewCell.h
...oduct View/ProductViewControllerThemeStyleTableViewCell.h
+0
-0
ProductViewControllerThemeStyleTableViewCell.m
...oduct View/ProductViewControllerThemeStyleTableViewCell.m
+0
-0
ProductViewControllerThemeTintColorTableViewCell.h
...t View/ProductViewControllerThemeTintColorTableViewCell.h
+0
-0
ProductViewControllerThemeTintColorTableViewCell.m
...t View/ProductViewControllerThemeTintColorTableViewCell.m
+0
-0
ProductViewControllerToggleTableViewCell.h
...e/Product View/ProductViewControllerToggleTableViewCell.h
+0
-0
ProductViewControllerToggleTableViewCell.m
...e/Product View/ProductViewControllerToggleTableViewCell.m
+0
-0
BUYImageKit.h
...vanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.h
+0
-83
BUYImageKit.m
...vanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.m
+0
-0
UIFont+BUYAdditions.h
...obile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.h
+0
-41
UIFont+BUYAdditions.m
...obile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.m
+0
-37
No files found.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample.xcodeproj/project.pbxproj
View file @
9e0b896b
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerThemeStyleTableViewCell.h
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerThemeStyleTableViewCell.h
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerThemeStyleTableViewCell.m
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerThemeStyleTableViewCell.m
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerThemeTintColorTableViewCell.h
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerThemeTintColorTableViewCell.h
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerThemeTintColorTableViewCell.m
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerThemeTintColorTableViewCell.m
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerToggleTableViewCell.h
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerToggleTableViewCell.h
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductViewControllerToggleTableViewCell.m
→
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Product
View/Product
ViewControllerToggleTableViewCell.m
View file @
9e0b896b
File moved
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.h
deleted
100644 → 0
View file @
fae235ec
//
// BUYImageKit.h
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
@import
Foundation
;
@import
UIKit
;
/**
* Image generator for a variety of images using the BUYProductViewController.
*/
@interface
BUYImageKit
:
NSObject
/**
* Generates a close button image for the variant selection navigation bar.
*
* @param frame The frame size of the image
*
* @return A close button image
*/
+
(
UIImage
*
)
imageOfVariantCloseImageWithFrame
:
(
CGRect
)
frame
;
/**
* Generates a checkmark image for use of displaying the previously selected variant
*
* @param frame The frame size of the image
*
* @return A checkmark for the previous variant selection
*/
+
(
UIImage
*
)
imageOfPreviousSelectionIndicatorImageWithFrame
:
(
CGRect
)
frame
;
/**
* Generates a custom disclosure indicator image
*
* @param frame The frame size of the image
* @param color The color for the disclosure indicator
*
* @return A disclusore indicator image
*/
+
(
UIImage
*
)
imageOfDisclosureIndicatorImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
color
;
/**
* Generates a close button image for the product view's navigation bar
*
* @param frame The frame size of the image
* @param color The color for the close button image
* @param hasShadow True if the X should have a drop shadow
*
* @return A close button image
*/
+
(
UIImage
*
)
imageOfProductViewCloseImageWithFrame
:
(
CGRect
)
frame
color
:(
UIColor
*
)
color
hasShadow
:(
BOOL
)
hasShadow
;
/**
* Generates a custom back button image for the variant selection navigation bar
*
* @param frame The frame size of the image
*
* @return A custom back button image
*/
+
(
UIImage
*
)
imageOfVariantBackImageWithFrame
:
(
CGRect
)
frame
;
@end
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/BUYImageKit.m
deleted
100644 → 0
View file @
fae235ec
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.h
deleted
100644 → 0
View file @
fae235ec
//
// BUYFont.h
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
@import
UIKit
;
@interface
UIFont
(
BUYAdditions
)
/**
* Class method to allow system fonts to have increased point sizes from the OS default.
*
* @param style The text style for the font.
* @param size A positive value to increase the default font's point size by.
*
* @return A system font with an optionally increased point size.
*/
+
(
UIFont
*
)
preferredFontForTextStyle
:(
NSString
*
)
style
increasedPointSize
:(
CGFloat
)
size
;
@end
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/Utils/UIFont+BUYAdditions.m
deleted
100644 → 0
View file @
fae235ec
//
// BUYFont.m
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import "UIFont+BUYAdditions.h"
@implementation
UIFont
(
BUYAdditions
)
+
(
UIFont
*
)
preferredFontForTextStyle
:(
NSString
*
)
style
increasedPointSize
:(
CGFloat
)
size
{
UIFontDescriptor
*
descriptor
=
[
UIFontDescriptor
preferredFontDescriptorWithTextStyle
:
style
];
return
[
UIFont
fontWithDescriptor
:
descriptor
size
:
descriptor
.
pointSize
+
size
];
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment