This file contains hidden or 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
- (void)reloadAnimated:(BOOL)animated withCompletionBlock:(void(^)())completionBlock | |
{ | |
FWTPieChartLayer *pieLayer = self.containerLayer.sublayers.firstObject; | |
[CATransaction begin]; | |
[CATransaction setCompletionBlock:completionBlock]; | |
[CATransaction setDisableActions:YES]; | |
CABasicAnimation *animation = (CABasicAnimation *)[pieLayer actionForKey:@"animationCompletionPercent"]; | |
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; |
This file contains hidden or 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
/** | |
Writes a set of objects in the database. | |
- parameter objects: Array of `Objects` to be stored on the database | |
- parameter configuration: Realm `Configuration` in which the write action will be performed | |
- parameter update: Enabled the custom *update* maintaining existing relationships | |
*/ | |
static func write(objects : [Object], configuration: Realm.Configuration, update: Bool = false) { | |
if let realm = try? Realm(configuration: configuration) { | |
realm.beginWrite() |
This file contains hidden or 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
require "rake" | |
require "houston" | |
namespace :push do | |
# Enables console logging | |
STDOUT.sync = true | |
# Instructions | |
# $> sudo gem install rake |
This file contains hidden or 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
// EasyPeasy | |
view.easy.layout(Edges(10.0)) | |
// SnapKit | |
view.snp.makeConstraints { (make) -> Void in | |
make.edges.equalTo(superview).inset(UIEdgeInsetsMake(10.0, 10.0, 10.0, 10.0)) | |
} | |
// Cartography | |
constrain(view) { view in |
This file contains hidden or 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
button.easy.layout( | |
CenterX(0.0), | |
CenterY(0.0), | |
Width(160.0), | |
Height(50.0) | |
) |
This file contains hidden or 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
button.easy.layout( | |
Center(0.0), | |
Size(CGSize(width: 160.0, height: 50.0)) | |
) |
This file contains hidden or 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
button.easy.layout( | |
Bottom(20.0) | |
) |
This file contains hidden or 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
button.easy.layout(Bottom(20.0)) |
This file contains hidden or 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
button.easy.layout(Bottom(20.0)) | |
button.superview?.layoutIfNeeded() |
This file contains hidden or 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
button.easy.layout(Width(200.0)) | |
button.layoutIfNeeded() |
OlderNewer