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
// | |
// RatingSession.swift | |
// | |
// | |
// Created by Werck Ayrton on 19/01/2016. | |
// | |
import UIKit | |
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
extension UIColor | |
{ | |
static func colorFromHexaString(hexa:String) -> UIColor | |
{ | |
var cString:String = hexa.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()).uppercaseString | |
if (cString.hasPrefix("#")) | |
{ | |
cString = (cString as NSString).substringFromIndex(1) | |
} |
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
protocol EA_SessionViewsProtocol | |
{ | |
static func instanceFromNib<T:EA_SessionViewsProtocol>() -> T | |
func displayDatasInView(datas:AnyObject?) | |
} | |
class EA_SessionViewsFactory { | |
static func CreateView<T:EA_SessionViewsProtocol>() -> T | |
{ |
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
//Added animation | |
import UIKit | |
extension CALayer | |
{ | |
func moveToFront() | |
{ | |
if let superLayerUnwrp = self.superlayer | |
{ | |
self.removeFromSuperlayer() |
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
import Foundation | |
import UIKit | |
extension UITextField { | |
func designTextField(placeholder: String,content: String?){ | |
let paddingView = UIView(frame: CGRectMake(0, 0, 15, self.frame.height)) | |
self.enabled = true |
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
extension UIView { | |
@IBInspectable var cornerRadius: CGFloat { | |
get { | |
return layer.cornerRadius | |
} | |
set { | |
layer.cornerRadius = newValue | |
layer.masksToBounds = newValue > 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
// | |
// Animations.h | |
// thirsty | |
// | |
// Created by Werck Ayrton on 02/06/2015. | |
// Copyright (c) 2015 Nyu Web Developpement. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <POP/POP.h> |
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
// | |
// CustomModalAnimation.h | |
// Wineot | |
// | |
// Created by Werck Ayrton on 18/02/2015. | |
// Copyright (c) 2015 wineot. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <UIKit/UIKit.h> |
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
// | |
// CustomModalAnimation.m | |
// Wineot | |
// | |
// Created by Werck Ayrton on 18/02/2015. | |
// Copyright (c) 2015 wineot. All rights reserved. | |
// | |
#import "CustomModalAnimation.h" |