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
func roundImage(#image: UIImage, withSize size: CGSize, withStorkeColor strokeColor: UIColor, withCornerRaduis raduis: CGFloat, withBorderWidth borderWidth: CGFloat) -> UIImage { | |
UIGraphicsBeginImageContextWithOptions(image.size, false, 0) | |
let borderWidth: CGFloat = borderWidth | |
let cornerRadius:CGFloat = raduis | |
let multiplier:CGFloat = image.size.height/size.height > image.size.width/size.width ? | |
image.size.height/size.height : | |
image.size.width/size.width | |
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
// | |
// RBResizer.swift | |
// Locker | |
// | |
// Created by Hampton Catlin on 6/20/14. | |
// Copyright (c) 2014 rarebit. All rights reserved. | |
// | |
import UIKit |
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
// | |
// MBProgressHUD+Extra.h | |
// EFG-IPhone | |
// | |
// Created by Mustafa Ibrahim on 10/23/14. | |
// Copyright (c) 2014 EFGHermes. All rights reserved. | |
// | |
#import "MBProgressHUD.h" |
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
// | |
// CheckConnection.h | |
// Youxel Technology | |
// | |
// Created by Mustafa Ibrahim on 10/3/12. | |
// Copyright (c) 2012 Youxel Technology. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "Reachability.h" |
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
// | |
// UIImage+MICropping.m | |
// Mustafa Ibrahim | |
// | |
// Created by Mustafa Ibrahim on 2/4/14. | |
// Copyright (c) 2014 Mustafa Ibrahim. All rights reserved. | |
// | |
#import "UIImage+MICropping.h" |