-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1687 from IFTTT/jazzhands-2-new-demo
Jazzhands 2 New Demo
- Loading branch information
Showing
209 changed files
with
7,567 additions
and
1,757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// IFTTTCircleView.h | ||
// JazzHandsDemo | ||
// | ||
// Created by Laura Skelton on 6/25/15. | ||
// Copyright (c) 2015 IFTTT Inc. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface IFTTTCircleView : UIView | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// IFTTTCircleView.m | ||
// JazzHandsDemo | ||
// | ||
// Created by Laura Skelton on 6/25/15. | ||
// Copyright (c) 2015 IFTTT Inc. All rights reserved. | ||
// | ||
|
||
#import "IFTTTCircleView.h" | ||
|
||
@interface IFTTTCircleView () | ||
|
||
@property (nonatomic, strong) CAShapeLayer *maskLayer; | ||
|
||
@end | ||
|
||
@implementation IFTTTCircleView | ||
|
||
- (void)layoutSubviews | ||
{ | ||
[super layoutSubviews]; | ||
|
||
if (!self.maskLayer) { | ||
self.maskLayer = [CAShapeLayer layer]; | ||
self.layer.mask = self.maskLayer; | ||
} | ||
|
||
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:CGRectGetWidth(self.bounds) / 2.f]; | ||
self.maskLayer.path = path.CGPath; | ||
|
||
self.layer.cornerRadius = CGRectGetWidth(self.layer.bounds) / 2.f; | ||
} | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.