Gif class

class Gif {
	let url: NSURL
	let videoURL: NSURL
	let caption: String?
	let gifImage: UIImage?
	var gifData: NSData?

	init(url:NSURL, videoURL: NSURL, caption: String?){

		self.url = url
		self.videoURL = videoURL
		self.caption = caption
		self.gifImage = UIImage.gifWithURL(url.absoluteString)!
		self.gifData = nil
	}

	init(name: String){
		self.gifImage = UIImage.gifWithName(name)
	}
}
#import <UIKit/UIKit.h>
#import "Gif.h"

@interface GifEditorViewController : UIViewController<UITextFeildDelegate>

@property (nonatomic) Gif *gif;
@property (weak, nonatomic) IBOutlet UIImageView *gifImageView;

@end

UITextFieldDelegate Methods

func textFieldDidBeginEditing(textField: UITextField){
	textField.placeholder = ""
}

func textFieldShoudReturn(textField: UITextField) -> Bool {
	textField.resignFirstResponder()
	return true
}