[
  {
    "path": ".gitignore",
    "content": "\n*.xcbkptlist\n"
  },
  {
    "path": "DraggableFloatingViewController.podspec",
    "content": "#\n#  Be sure to run `pod spec lint DraggableFloatingViewController.podspec' to ensure this is a\n#  valid spec and to remove all comments including this before submitting the spec.\n#\n#  To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html\n#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/\n#\n\nPod::Spec.new do |s|\n\n  # ―――  Spec Metadata  ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  These will help people to find your library, and whilst it\n  #  can feel like a chore to fill in it's definitely to your advantage. The\n  #  summary should be tweet-length, and the description more in depth.\n  #\n\n  s.name         = \"DraggableFloatingViewController\"\n  # s.version      = \"v1.0\"\n  s.summary      = \"A short description of DraggableFloatingViewController.\"\n\n  s.description  = <<-DESC\n                   A longer description of DraggableFloatingViewController in Markdown format.\n\n                   * Think: Why did you write this? What is the focus? What does it do?\n                   * CocoaPods will be using this to generate tags, and improve search results.\n                   * Try to keep it short, snappy and to the point.\n                   * Finally, don't worry about the indent, CocoaPods strips it!\n                   DESC\n\n  s.homepage     = \"http://github.com/entotsu/DraggableFloatingViewController\"\n  # s.screenshots  = \"www.example.com/screenshots_1.gif\", \"www.example.com/screenshots_2.gif\"\n\n\n  # ―――  Spec License  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Licensing your code is important. See http://choosealicense.com for more info.\n  #  CocoaPods will detect a license file if there is a named LICENSE*\n  #  Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.\n  #\n\n  s.license      = \"MIT (example)\"\n  # s.license      = { :type => \"MIT\", :file => \"FILE_LICENSE\" }\n\n\n  # ――― Author Metadata  ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Specify the authors of the library, with email addresses. Email addresses\n  #  of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also\n  #  accepts just a name if you'd rather not provide an email address.\n  #\n  #  Specify a social_media_url where others can refer to, for example a twitter\n  #  profile URL.\n  #\n\n  s.author             = { \"Sandeep Mukherjee\" => \"vizllx@gmail.com\" }\n  # Or just: s.author    = \"Sandeep Mukherjee\"\n  # s.authors            = { \"Sandeep Mukherjee\" => \"vizllx@gmail.com\" }\n  # s.social_media_url   = \"http://github.com/vizllx\"\n\n  # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  If this Pod runs only on iOS or OS X, then specify the platform and\n  #  the deployment target. You can optionally include the target after the platform.\n  #\n\n  # s.platform     = :ios\n  s.platform     = :ios, \"6.0\"\n\n  #  When using multiple platforms\n  # s.ios.deployment_target = \"5.0\"\n  # s.osx.deployment_target = \"10.7\"\n\n\n  s.source       = { :git => \"http://github.com/entotsu/DraggableFloatingViewController.git\", :tag => \"v1.0\" }\n  s.source_files  = \"Classes\", \"YouTubeDraggableVideo/Source/*.{h,m}\"\n  # s.exclude_files = \"Classes/Exclude\"\n\n  # s.public_header_files = \"Classes/**/*.h\"\n\n\n  # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  A list of resources included with the Pod. These are copied into the\n  #  target bundle with a build phase script. Anything else will be cleaned.\n  #  You can preserve files from being cleaned, please don't preserve\n  #  non-essential files like tests, examples and documentation.\n  #\n\n  # s.resource  = \"icon.png\"\n  # s.resources = \"Resources/*.png\"\n\n  # s.preserve_paths = \"FilesToSave\", \"MoreFilesToSave\"\n\n\n  # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  Link your library with frameworks, or libraries. Libraries do not include\n  #  the lib prefix of their name.\n  #\n\n  # s.framework  = \"SomeFramework\"\n  # s.frameworks = \"SomeFramework\", \"AnotherFramework\"\n\n  # s.library   = \"iconv\"\n  # s.libraries = \"iconv\", \"xml2\"\n\n\n  # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #\n  #\n  #  If your library depends on compiler flags you can set them in the xcconfig hash\n  #  where they will only apply to your library. If you depend on other Podspecs\n  #  you can include multiple dependencies to ensure it works.\n\n  # s.requires_arc = true\n\n  # s.xcconfig = { \"HEADER_SEARCH_PATHS\" => \"$(SDKROOT)/usr/include/libxml2\" }\n  # s.dependency \"JSONKit\", \"~> 1.4\"\n\nend\n"
  },
  {
    "path": "LICENSE.md",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Sandeep Mukherjee\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "\n\n\n# DraggableFloatingViewController\n\n### Like YouTube app\n\nDraggableFloatingViewController allows you to play videos on a floating mini window at the bottom of your screen from sites like YouTube, Vimeo & Facebook or custom video , yes you have to prepare your video view for that.\n\n\nHow it works\n------------\nThe view will animate the view just like Youtube mobile app, while tapping on video a UIView pops up from right corner of the screen and the view can be dragged to  right corner through Pan Gesture and more features are there as Youtube iOS app\n\n\nScreenshot\n------------\n ![Output sample](https://github.com/entotsu/DraggableFloatingViewController/raw/master/Screenshot2.gif)\n\n\n\n# Usage\n\n\n## extend this class\n\n#### set your video view in \"viewDidLoad\" of subclass\n\n```swift\noverride func viewDidLoad() {\n\n    self.setupViewsWithVideoView(yourMoivePlayer.view, //UIView\n        videoViewHeight: yourPlayerHeight, //CGFloat\n        minimizeButton: yourButton //UIButton\n    )\n\n    // add your view to bodyView\n    self.bodyView.addSubview(yourView)\n}\n```\n\n## in parent view controller\n\n### show\n\n```swift\nfunc showSecondController() {\n    removeDraggableFloatingViewController()\n    self.videoViewController = VideoDetailViewController()\n    self.videoViewController.delegate = self\n    self.videoViewController.showVideoViewControllerOnParentVC(self)\n}\n```\n\n\n### dismiss\n\n```swift\nfunc removeDraggableFloatingViewController() {\n    if self.videoViewController != nil {\n        self.videoViewController.removeAllViews()\n        self.videoViewController = nil\n    }\n}\n```\n\n\n\n\n--------------------------------------------------\n\n\n# Please edit \"info.plist\"\nTo disable swipe down gesture of Notification Center, you need to edit \"info.plist\" to hide status bar.\nhttp://stackoverflow.com/questions/18059703/cannot-hide-status-bar-in-ios7\n![editInfoPlist](http://i.stack.imgur.com/dM32P.png \"editInfoPlist\")\n\n\n--------------------------------------------------\n\n--------------------------------------------------\n\n--------------------------------------------------\n# please override if you want\n```swift\noverride func didExpand() {\n    showVideoControl()\n}\noverride func didMinimize() {\n    hideVideoControl()\n}\n```\n\n-------------------------------------------------------\n\n## Please see demo app\nIf you want to use this, you have to check this demo app.\n\n\n<!--\n## Minimam example Classes\n\n### Minimam subclass\n\n```swift\nclass VideoDetailViewController: DraggableFloatingViewController {\n\n    var moviePlayer: MPMoviePlayerController!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        // prepare your video player\n        moviePlayer = MPMoviePlayerController()\n\n        // prepare your closing button\n        let foldBtn = UIButton()\n        foldBtn.frame = CGRect(x: 0, y: 0, width: 44, height: 44)\n        foldBtn.setImage(UIImage(named: \"DownArrow\"), forState: UIControlState.Normal)\n\n        // please call this in \"viewDidLoad\"\n        self.setupViewsWithVideoView(moviePlayer.view,\n            videoViewHeight: 160,\n            foldButton: foldBtn\n        );\n\n        // you can add sub views on bodyView\n        let testView = UILabel()\n        testView.frame = CGRect(x: 20, y: 20, width: 100, height: 40)\n        testView.text = \"test view\"\n        self.bodyView.addSubview(testView)\n    }\n\n    // please override if you want\n    override func didExpand() {\n        showVideoControl()\n    }\n    override func didMinimize() {\n        hideVideoControl()\n    }\n}\n```\n\n\n### Minimam parent view controller\n\n```swift\nclass FirstViewController: UIViewController , DraggableFloatingViewControllerDelegate {\n\n    var videoViewController: VideoDetailViewController!\n\n    @IBAction func onTapButton(sender: AnyObject) {\n        self.showSecondController()\n    }\n\n    override func viewWillDisappear(animated: Bool) {\n        // when go to fullscreen, this is also called\n        if !self.videoViewController.isFullScreen() {\n            removeDraggableFloatingViewController()\n        }\n    }\n\n    func showSecondController() {\n        removeDraggableFloatingViewController()\n        self.videoViewController = VideoDetailViewController()\n        self.videoViewController.delegate = self\n        self.videoViewController.showVideoViewControllerOnParentVC(self)\n    }\n\n    // DraggableFloatingViewControllerDelegate\n    func removeDraggableFloatingViewController() {\n        if self.videoViewController != nil {\n            self.videoViewController.removeAllViews()\n            self.videoViewController = nil\n        }\n    }\n}\n```\n-->"
  },
  {
    "path": "YouTubeDraggableVideo/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  test\n//\n//  Created by Takuya Okamoto on 2015/06/19.\n//  Copyright (c) 2015年 Uniface. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n\n\n@end\n\n"
  },
  {
    "path": "YouTubeDraggableVideo/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  test\n//\n//  Created by Takuya Okamoto on 2015/06/19.\n//  Copyright (c) 2015年 Uniface. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n\n@interface AppDelegate ()\n\n@end\n\n@implementation AppDelegate\n\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    // Override point for customization after application launch.\n    return YES;\n}\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "YouTubeDraggableVideo/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"17506\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\">\n    <device id=\"retina6_1\" orientation=\"portrait\" appearance=\"light\"/>\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"17505\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"440\" height=\"21\"/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" systemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"YouTubeDraggableVideo\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"139.5\" width=\"440\" height=\"43\"/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <color key=\"backgroundColor\" red=\"0.44807761879301528\" green=\"0.63056310519295333\" blue=\"0.97551688762626265\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n    <resources>\n        <systemColor name=\"darkTextColor\">\n            <color white=\"0.0\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"genericGamma22GrayColorSpace\"/>\n        </systemColor>\n    </resources>\n</document>\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  test\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n\n\n@class VideoDetailViewController;\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n\n@property (strong, nonatomic) UIWindow *window;\n@property (strong, nonatomic) VideoDetailViewController *videoViewController;\n\n@end\n\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  test\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"YouTubeDraggableVideo-Swift.h\"\n\n\n@interface AppDelegate ()\n@end\n\n@implementation AppDelegate\n\n//+ (VideoDetailViewController) video\n\n//    static func appDelegate() -> AppDelegate? {\n//        return UIApplication.sharedApplication().delegate as? AppDelegate\n//    }\n\n+ (AppDelegate *) appDelegate {\n    return [[UIApplication sharedApplication] delegate];\n}\n\n//+ (VideoDetailViewController *) videoController {\n//    return [[[UIApplication sharedApplication] delegate] videoViewController];\n//}\n\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {\n    \n    self.videoViewController = [[VideoDetailViewController alloc] init];\n    \n    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];\n    self.window.rootViewController = [[FirstViewController alloc] init];\n    [self.window makeKeyAndVisible];\n    return YES;\n}\n\n- (void)applicationWillResignActive:(UIApplication *)application {\n    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n}\n\n- (void)applicationDidEnterBackground:(UIApplication *)application {\n    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n}\n\n- (void)applicationWillEnterForeground:(UIApplication *)application {\n    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n}\n\n- (void)applicationDidBecomeActive:(UIApplication *)application {\n    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n}\n\n- (void)applicationWillTerminate:(UIApplication *)application {\n    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n}\n\n@end\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/AppDelegate.swift",
    "content": "////\n////  AppDelegate.swift\n////  APlayerViewController\n////\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n//\n//import UIKit\n//\n//@UIApplicationMain\n//class AppDelegate: UIResponder, UIApplicationDelegate {\n//\n//    var window: UIWindow?\n//    var videoViewController = VideoDetailViewController()\n//\n//    \n//    static func appDelegate() -> AppDelegate? {\n//        return UIApplication.sharedApplication().delegate as? AppDelegate\n//    }\n//\n//    static func videoController() -> VideoDetailViewController {\n//        return appDelegate()!.videoViewController\n//    }\n//    \n//    static func getWindow() -> UIWindow {\n//        return appDelegate()!.window!\n//    }\n//    \n//    \n//    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {\n//        // Override point for customization after application launch.\n//        self.window = UIWindow(frame: UIScreen.mainScreen().bounds)\n//        self.window!.rootViewController = FirstViewController()\n//        self.window!.makeKeyAndVisible()\n//        return true\n//    }\n//\n//    func applicationWillResignActive(application: UIApplication) {\n//        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.\n//        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.\n//    }\n//\n//    func applicationDidEnterBackground(application: UIApplication) {\n//        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.\n//        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n//    }\n//\n//    func applicationWillEnterForeground(application: UIApplication) {\n//        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.\n//    }\n//\n//    func applicationDidBecomeActive(application: UIApplication) {\n//        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.\n//    }\n//\n//    func applicationWillTerminate(application: UIApplication) {\n//        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n//    }\n//\n//\n//}\n//\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/FirstViewController.swift",
    "content": "//\n//  FirstViewController.swift\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\nimport UIKit\n\nclass FirstViewController: UIViewController  {\n    \n    \n    override func viewDidLoad() {\n        self.view.backgroundColor = .white\n\n        let btn = UIButton()\n        btn.frame = CGRect(x: self.view.center.x-100, y: self.view.center.y, width: 200, height: 100)\n        btn.backgroundColor = .blue\n        btn.setTitle(\"Show Video Screen\", for: .normal)\n        btn.addTarget(self, action: #selector(onTapShowButton), for: .touchUpInside)\n        self.view.addSubview(btn)\n        \n      \n        \n    }\n\n    @objc func onTapShowButton() {\n        (UIApplication.shared.delegate as! AppDelegate).videoViewController.show() //👈\n    }\n    \n    override var prefersStatusBarHidden: Bool {\n        return false\n    }\n\n   \n    \n}\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/NSTimerHelper.swift",
    "content": "//\n//  NSTimerHelper.swift\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\nimport Foundation\n\nextension Timer {\n    static func schedule(delay: TimeInterval, handler: @escaping(Timer?)  -> Void) -> Timer? {\n        let fireDate = delay + CFAbsoluteTimeGetCurrent()\n        let timer = CFRunLoopTimerCreateWithHandler(kCFAllocatorDefault, fireDate, 0, 0, 0, handler)\n        CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, CFRunLoopMode.commonModes)\n        return timer\n    }\n    \n    static func schedule(repeatInterval interval: TimeInterval, handler: @escaping(Timer?)  -> Void) -> Timer? {\n        let fireDate = interval + CFAbsoluteTimeGetCurrent()\n        let timer = CFRunLoopTimerCreateWithHandler(kCFAllocatorDefault, fireDate, interval, 0, 0, handler)\n        CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer, CFRunLoopMode.commonModes)\n        return timer\n    }\n}\n\n\n// Usage:\n\n//var count = 0\n//NSTimer.schedule(repeatInterval: 1) { timer in\n//    println(++count)\n//    if count >= 10 {\n//        timer.invalidate()\n//    }\n//}\n//\n//NSTimer.schedule(delay: 5) { timer in\n//    println(\"5 seconds\")\n//}\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/SecondViewController.swift",
    "content": "//\n//  SecondViewController.swift\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\nimport Foundation\n\nclass SecondViewController: UIViewController {\n    \n    \n    @objc func onTapButton() {\n        (UIApplication.shared.delegate as! AppDelegate).videoViewController.show()//👈\n    }\n\n    @objc func onTapDismissButton() {\n        _ = self.presentingViewController\n        self.dismiss(animated: true, completion: nil)\n//        NSTimer.schedule(delay: 0.2) { timer in\n//            AppDelegate.videoController().changeParentVC(parentVC)//👈\n//        }\n    }\n    \n    override func viewDidLoad() {\n        self.view.backgroundColor = .white\n\n        let btn = UIButton()\n        btn.frame = CGRect(x: 10, y: 10, width: 100, height: 100)\n        btn.backgroundColor = .blue\n        btn.addTarget(self, action: #selector(onTapButton), for: .touchUpInside)\n        self.view.addSubview(btn)\n        \n        let dismissBtn = UIButton()\n        dismissBtn.frame = CGRect(x: 150, y: 150, width: 100, height: 100)\n        dismissBtn.backgroundColor = .orange\n        dismissBtn.addTarget(self, action: #selector(onTapDismissButton), for: .touchUpInside)\n        self.view.addSubview(dismissBtn)\n\n    }\n    \n}\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/VideoDetailViewController.swift",
    "content": "//\n//  VideoViewController.swift\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\nimport Foundation\nimport UIKit\n\n@objc class VideoDetailViewController: DraggableFloatingViewController {\n\n    var moviePlayer: MPMoviePlayerController!\n    private let loadingSpinner = UIActivityIndicatorView()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        moviePlayer = MPMoviePlayerController()\n\n        self.setupViews(withVideoView: moviePlayer.view, videoViewHeight: 160)//, minimizeButton: minimizeButton)\n\n        setupMoviePlayer()\n\n        NotificationCenter.default.addObserver(self, selector: #selector(onOrientationChanged), name: UIDevice.orientationDidChangeNotification, object: nil)\n        \n        // design controller view\n        let minimizeButton = UIButton()\n        minimizeButton.frame = CGRect(x: 0, y: 0, width: 44, height: 44)\n        minimizeButton.setImage(UIImage(named: \"DownArrow\"), for: .normal)\n        minimizeButton.addTarget(self, action: #selector(onTapMinimizeButton), for: .touchUpInside)\n        self.controllerView.addSubview(minimizeButton)\n        let testControl = UILabel()\n        testControl.frame = CGRect(x: 100, y: 5, width: 150, height: 40)\n        testControl.text = \"controller view\"\n        testControl.textColor = .white\n        self.controllerView.addSubview(testControl)\n        \n        // design body view\n        self.bodyView.backgroundColor = .gray\n        self.bodyView.layer.borderColor = UIColor.blue.cgColor\n        self.bodyView.layer.borderWidth = 2.0\n        let testView = UILabel()\n        testView.frame = CGRect(x: 20, y: 10, width: 100, height: 40)\n        testView.text = \"body view\"\n        testView.textColor = .blue\n        self.bodyView.addSubview(testView)\n        \n        // design message view\n        self.messageView.backgroundColor = UIColor.black.withAlphaComponent(0.8)\n        loadingSpinner.frame = CGRect(x: 0, y: 0, width: 50, height: 50)\n        loadingSpinner.center = self.messageView.center\n        loadingSpinner.hidesWhenStopped = false\n        loadingSpinner.style = .white\n        self.messageView.addSubview(loadingSpinner)\n    }\n    \n    override func didDisappear() {\n        moviePlayer.pause()\n    }\n\n    override func didReAppear() {\n        setupMoviePlayer()\n    }\n    \n    override var prefersStatusBarHidden: Bool {\n        return true\n    }\n\n    \n    \n    func onTapButton() {\n        print(\"onTapButton\")\n    }\n    \n    override func showMessageView() {\n        loadingSpinner.startAnimating()\n        super.showMessageView()\n    }\n    override func hideMessageView() {\n        super.hideMessageView()\n        loadingSpinner.stopAnimating()\n    }\n    \n    override func didFullExpandByGesture() {\n        showVideoControl()\n    }\n    override func didExpand() {\n        print(\"didExpand\")\n\n        showVideoControl()\n    }\n    override func didMinimize() {\n        print(\"didMinimized\")\n        hideVideoControl()\n    }\n    \n    override func didStartMinimizeGesture() {\n        print(\"didStartMinimizeGesture\")\n    }\n    \n    \n    @objc func onTapMinimizeButton() {\n        self.minimizeView()\n    }\n    \n    \n    \n    // --------------------------------------------------------------------------------------------------\n    \n    func setupMoviePlayer() {\n        // setupMovie\n        let url = NSURL.fileURL(withPath: Bundle.main.path(forResource: \"test\", ofType: \"mp4\")!)\n        moviePlayer.contentURL = url\n        moviePlayer.isFullscreen = false\n        moviePlayer.controlStyle = .none\n        moviePlayer.repeatMode = .none\n        moviePlayer.prepareToPlay()\n        \n        // play\n        let seconds = 1.0\n        let delay = seconds * Double(NSEC_PER_SEC)// nanoseconds per seconds\n        DispatchQueue.main.asyncAfter(deadline: .now() + delay) {\n            self.moviePlayer.play()\n        }\n\n        // for movie loop\n        \n        NotificationCenter.default.addObserver(self, selector: #selector(moviePlayBackDidFinish),\n                                               name: NSNotification.Name.MPMoviePlayerPlaybackDidFinish,\n            object: moviePlayer)\n    }\n\n    // movie loop\n    @objc func moviePlayBackDidFinish(notification: NSNotification) {\n        print(\"moviePlayBackDidFinish:\")\n        moviePlayer.play()\n        removeObserver(aName: NSNotification.Name.MPMoviePlayerPlaybackDidFinish.rawValue)\n    }\n    \n    \n    \n    \n    // ----------------------------- events -----------------------------------------------\n    \n    // MARK: Orientation\n    @objc func onOrientationChanged() {\n        let orientation: UIInterfaceOrientation = getOrientation()\n        \n        switch orientation {\n        \n        case .portrait, .portraitUpsideDown:\n            print(\"portrait\")\n            exitFullScreen()\n\n        case .landscapeLeft, .landscapeRight:\n            print(\"landscape\")\n            goFullScreen()\n\n        default:\n            print(\"no action for this orientation:\" + orientation.rawValue.description)\n        }\n        \n    }\n    \n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n    }\n    \n    \n    \n    \n    \n    // --------------------------------- util ------------------------------------------\n    \n    // MARK: FullScreen Method\n    func isFullScreen() -> Bool {\n//        println(\"isFullScreen: \" + String(stringInterpolationSegment: moviePlayer.fullscreen))\n        return moviePlayer.isFullscreen\n    }\n    func goFullScreen() {\n        if !isFullScreen() {\n//            println(\"goFullScreen\")\n            moviePlayer.controlStyle = MPMovieControlStyle.fullscreen\n            moviePlayer.isFullscreen = true\n            addObserver(selector: #selector(willExitFullScreen), name: NSNotification.Name.MPMoviePlayerWillExitFullscreen.rawValue)\n        }\n    }\n    func exitFullScreen() {\n        if isFullScreen() {\n//            println(\"exit fullscreen\");\n            moviePlayer.isFullscreen = false\n        }\n    }\n    @objc func willExitFullScreen() {\n//        println(\"willExitFullScreen\")\n        if isLandscape()\n        {\n            setOrientation(orientation: .portrait)\n        }\n\n        \n        removeObserver(aName: NSNotification.Name.MPMoviePlayerWillExitFullscreen.rawValue)\n    }\n\n    \n    // FIXIT: Don't work\n    func showVideoControl() {\n//        println(\"showVideoControl\");\n        moviePlayer.controlStyle = .none\n    }\n    \n    // FIXIT: Don't work\n    func hideVideoControl() {\n//        println(\"hideVideoControl\")\n        moviePlayer.controlStyle = .none\n    }\n    \n    \n    \n    \n    //-----------------------------------------------------------------------------------\n    \n    func getOrientation() -> UIInterfaceOrientation {\n        return UIApplication.shared.statusBarOrientation\n    }\n    \n    func setOrientation(orientation: UIInterfaceOrientation) {\n        let orientationNum: NSNumber = NSNumber(value: orientation.rawValue)\n        UIDevice.current.setValue(orientationNum, forKey: \"orientation\")\n    }\n    \n    func addObserver(selector aSelector: Selector, name aName: String) {\n        NotificationCenter.default.addObserver(self, selector: aSelector, name:NSNotification.Name(aName), object: nil)\n    }\n    \n    func removeObserver(aName: String) {\n        NotificationCenter.default.removeObserver(self, name: NSNotification.Name(aName), object: nil)\n    }\n    \n    func isLandscape() -> Bool {\n        if (UIApplication.shared.statusBarOrientation.isLandscape) {\n            return true\n        }\n        else {\n            return false\n        }\n    }\n}\n"
  },
  {
    "path": "YouTubeDraggableVideo/Demo/YouTubeDraggableVideo-Bridging-Header.h",
    "content": "//\n//  Use this file to import your target's public headers that you would like to expose to Swift.\n//\n\n#import \"DraggableFloatingViewController.h\"\n#import \"AppDelegate.h\""
  },
  {
    "path": "YouTubeDraggableVideo/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"20x20\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"29x29\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"40x40\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"2x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"scale\" : \"3x\",\n      \"size\" : \"60x60\"\n    },\n    {\n      \"idiom\" : \"ios-marketing\",\n      \"scale\" : \"1x\",\n      \"size\" : \"1024x1024\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "YouTubeDraggableVideo/Images.xcassets/DownArrow.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"DownArrow~iPhone.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"DownArrow~iPhone-667h@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\",\n      \"filename\" : \"DownArrow~iPhone-736h@3x.png\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "YouTubeDraggableVideo/Images.xcassets/test.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"test.jpg\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "YouTubeDraggableVideo/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UIViewControllerBasedStatusBarAppearance</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "YouTubeDraggableVideo/Source/DraggableFloatingViewController.h",
    "content": "//\n//  BSVideoDetailController.h\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <MediaPlayer/MediaPlayer.h>\n\n\n\n@protocol DraggableFloatingViewControllerDelegate\n@required\n- (void)removeDraggableFloatingViewController;\n@end\n\n\n// please extend\n@interface DraggableFloatingViewController : UIViewController<UIGestureRecognizerDelegate>\n\n\n\n// ---------- use from SubClass ------------------------\n\n// please add subview on this\n@property(nonatomic, strong) UIView *bodyView;\n//please add controller on this\n@property(nonatomic, strong) UIView *controllerView;\n//please add loading spiner on this\n@property(nonatomic, strong) UIView *messageView;\n\n// please call from \"viewDidLoad\" from sub class\n- (void) setupViewsWithVideoView: (UIView *)vView\n                 videoViewHeight: (CGFloat) videoHeight;\n\n// please override if you want\n- (void) didExpand;\n- (void) didMinimize;\n- (void) didStartMinimizeGesture;\n- (void) didFullExpandByGesture;//stil dev\n- (void) didDisappear;\n- (void) didReAppear;\n\n\n// please call if you want\n- (void) minimizeView;\n- (void) expandView;\n- (void) hideControllerView;\n- (void) showControllerView;\n- (void) showMessageView;\n- (void) hideMessageView;\n\n\n\n// ---------- use from other class ------------------------\n// please call from parent view controller\n- (void) show;\n- (void) bringToFront;\n\n\n\n@end\n"
  },
  {
    "path": "YouTubeDraggableVideo/Source/DraggableFloatingViewController.m",
    "content": "//\n//  BSVideoDetailController.m\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n\n#import \"DraggableFloatingViewController.h\"\n#import \"QuartzCore/CALayer.h\"\n\ntypedef NS_ENUM(NSUInteger, UIPanGestureRecognizerDirection) {\n    UIPanGestureRecognizerDirectionUndefined,\n    UIPanGestureRecognizerDirectionUp,\n    UIPanGestureRecognizerDirectionDown,\n    UIPanGestureRecognizerDirectionLeft,\n    UIPanGestureRecognizerDirectionRight\n};\n\n@interface DraggableFloatingViewController ()\n@end\n\n\n@implementation DraggableFloatingViewController\n{\n    \n    //local Frame storee\n    CGRect videoWrapperFrame;\n    CGRect minimizedVideoFrame;\n    CGRect pageWrapperFrame;\n\n    // animation Frame\n    CGRect wFrame;\n    CGRect vFrame;\n    \n    //local touch location\n    CGFloat _touchPositionInHeaderY;\n    CGFloat _touchPositionInHeaderX;\n    \n    //detecting Pan gesture Direction\n    UIPanGestureRecognizerDirection direction;\n    \n    UITapGestureRecognizer *tapRecognizer;\n    \n    //Creating a transparent Black layer view\n    UIView *transparentBlackSheet;\n    \n    //Just to Check wether view  is expanded or not\n    BOOL isExpandedMode;\n    \n    \n    UIView *pageWrapper;\n    UIView *videoWrapper;\n//    UIButton *foldButton;\n\n    UIView *videoView;\n    // border of mini vieo view\n    UIView *borderView;\n\n    CGFloat maxH;\n    CGFloat maxW;\n    CGFloat videoHeightRatio;\n    CGFloat finalViewOffsetY;\n    CGFloat minimamVideoHeight;\n\n    UIView *parentView;\n    \n    BOOL isDisplayController;\n    NSTimer *hideControllerTimer;\n    \n    BOOL isMinimizingByGesture;\n    \n    BOOL isAppear;\n    BOOL isSetuped;\n\n    CGRect windowFrame;\n}\n\nconst CGFloat finalMargin = 3.0;\nconst CGFloat minimamVideoWidth = 140;\nconst CGFloat flickVelocity = 1000;\n\n// please override if you want\n- (void) didExpand {}\n- (void) didMinimize {}\n- (void) didStartMinimizeGesture {\n    [[UIApplication sharedApplication] setStatusBarHidden:NO];\n}\n- (void) didFullExpandByGesture {}// TODO: meke this stable\n- (void) didDisappear{}\n- (void) didReAppear{}\n\n- (id)init\n{\n    self = [super init];\n    if (self) {\n        self.bodyView = [[UIView alloc] init];\n        self.controllerView = [[UIView alloc] init];\n        self.messageView = [[UIView alloc] init];\n    }\n    return self;\n}\n- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {\n    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];\n    if (self) {\n        self.bodyView = [[UIView alloc] init];\n        self.controllerView = [[UIView alloc] init];\n        self.messageView = [[UIView alloc] init];\n    }\n    return self;\n}\n\n\n\n# pragma mark - init\n\n- (void) show {\n    if (!isSetuped) {\n        [self setup];\n    }\n    else {\n        if (!isAppear) {\n            [self reAppearWithAnimation];\n        }\n    }\n}\n\n\n- (void) setup {\n    \n    isSetuped = true;\n    \n    NSLog(@\"showVideoViewControllerOnParentVC\");\n    \n//    if( ![parentVC conformsToProtocol:@protocol(DraggableFloatingViewControllerDelegate)] ) {\n//        NSAssert(NO, @\"❌❌Parent view controller must confirm to protocol <DraggableFloatingViewControllerDelegate>.❌❌\");\n//    }\n//    self.delegate = parentVC;\n    \n    // set portrait\n    if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) {\n        [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger: UIInterfaceOrientationPortrait] forKey:@\"orientation\"];\n    }\n    \n    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];\n    \n//    parentView = parentVC.view;\n//    [parentView addSubview:self.view];// then, \"viewDidLoad\" called\n    [[self getWindow] addSubview:self.view];\n    \n    // wait to run \"viewDidLoad\" before \"showThisView\"\n    [self performSelector:@selector(showThisView) withObject:nil afterDelay:0.0];\n    \n    isAppear = true;\n}\n// ↓\n// VIEW DID LOAD\n- (void) setupViewsWithVideoView: (UIView *)vView\n            videoViewHeight: (CGFloat) videoHeight\n//                 minimizeButton: (UIButton *)foldBtn\n{\n    NSLog(@\"setupViewsWithVideoView\");\n    \n    videoView = vView;\n//    foldButton = foldBtn;//control show and hide\n    \n    windowFrame = [[UIScreen mainScreen] bounds];\n    maxH = windowFrame.size.height;\n    maxW = windowFrame.size.width;\n    CGFloat videoWidth = maxW;\n    videoHeightRatio = videoHeight / videoWidth;\n    minimamVideoHeight = minimamVideoWidth * videoHeightRatio;\n    finalViewOffsetY = maxH - minimamVideoHeight - finalMargin;\n    \n    videoWrapper = [[UIView alloc] init];\n    videoWrapper.frame = CGRectMake(0, 0, videoWidth, videoHeight);\n    \n    videoView.frame = videoWrapper.frame;\n    self.controllerView.frame = videoWrapper.frame;\n    self.messageView.frame = videoWrapper.frame;\n    \n    pageWrapper = [[UIView alloc] init];\n    pageWrapper.frame = CGRectMake(0, 0, maxW, maxH);\n    \n    videoWrapperFrame = videoWrapper.frame;\n    pageWrapperFrame = pageWrapper.frame;\n    \n    \n    borderView = [[UIView alloc] init];\n    borderView.clipsToBounds = YES;\n    borderView.layer.masksToBounds = NO;\n    borderView.layer.borderColor = [[UIColor whiteColor] CGColor];\n    borderView.layer.borderWidth = 0.5f;\n//    borderView.layer.shadowOffset = CGSizeMake(0.0f, 0.0f);\n//    borderView.layer.shadowColor = [UIColor blackColor].CGColor;\n//    borderView.layer.shadowRadius = 1.0;\n//    borderView.layer.shadowOpacity = 1.0;\n    borderView.alpha = 0;\n    borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                  videoView.frame.origin.x - 1,\n                                  videoView.frame.size.width + 1,\n                                  videoView.frame.size.height + 1);\n\n    self.bodyView.frame = CGRectMake(0, videoHeight, maxW, maxH - videoHeight);\n}\n// ↓\n- (void) showThisView {\n    // only first time, SubViews add to \"self.view\".\n    // After animation, they move to \"parentView\"\n    videoView.backgroundColor = [UIColor blackColor];\n    videoWrapper.backgroundColor = [UIColor blackColor];\n    [pageWrapper addSubview:self.bodyView];\n    [videoWrapper addSubview:videoView];\n    // move subviews from \"self.view\" to \"parentView\" after animation\n    [self.view addSubview:pageWrapper];\n    [self.view addSubview:videoWrapper];\n    \n    transparentBlackSheet = [[UIView alloc] initWithFrame:windowFrame];\n    transparentBlackSheet.backgroundColor = [UIColor blackColor];\n    transparentBlackSheet.alpha = 1;\n    \n    [self appearAnimation];\n}\n// ↓\n- (void) appearAnimation {\n    \n    self.view.frame = CGRectMake(windowFrame.size.width - 50,\n                                 windowFrame.size.height - 50,\n                                 windowFrame.size.width,\n                                 windowFrame.size.height);\n    self.view.transform = CGAffineTransformMakeScale(0.2, 0.2);\n    self.view.alpha = 0;\n    [UIView animateWithDuration:0.2\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         self.view.transform = CGAffineTransformMakeScale(1.0, 1.0);\n                         self.view.alpha = 1;\n                         self.view.frame = CGRectMake(windowFrame.origin.x,\n                                                      windowFrame.origin.y,\n                                                      windowFrame.size.width,\n                                                      windowFrame.size.height);\n                     }\n                     completion:^(BOOL finished) {\n                         [self afterAppearAnimation];\n                     }];\n}\n// ↓\n-(void) afterAppearAnimation {\n    videoView.backgroundColor = videoWrapper.backgroundColor = [UIColor clearColor];\n\n    \n//    [parentView addSubview:transparentBlackSheet];\n    // move from self.view\n//    [parentView addSubview:pageWrapper];\n//    [parentView addSubview:videoWrapper];\n\n    [[self getWindow] addSubview:transparentBlackSheet];\n    [[self getWindow] addSubview:pageWrapper];\n    [[self getWindow] addSubview:videoWrapper];\n\n    \n    self.view.hidden = TRUE;\n\n    [videoView addSubview:borderView];\n    \n    [videoWrapper addSubview:self.controllerView];\n    \n    self.messageView.hidden = TRUE;\n    [videoWrapper addSubview:self.messageView];\n    \n    [self showControllerView];\n    \n    UITapGestureRecognizer* expandedTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapExpandedVideoView)];\n    expandedTap.numberOfTapsRequired = 1;\n    expandedTap.delegate = self;\n    [videoWrapper addGestureRecognizer:expandedTap];\n\n    vFrame = videoWrapperFrame;\n    wFrame = pageWrapperFrame;\n    \n    // adding Pan Gesture\n    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panAction:)];\n    pan.delegate = self;\n    [videoWrapper addGestureRecognizer:pan];\n    \n    isExpandedMode = TRUE;\n}\n\n\n\n\n\n\n- (void) disappear {\n    isAppear = false;\n//    [self.delegate removeDraggableFloatingViewController];\n}\n\n\n- (void) reAppearWithAnimation {\n    borderView.alpha = 0;\n    transparentBlackSheet.alpha = 0;\n\n    videoWrapper.alpha = 0;\n    pageWrapper.alpha = 0;\n\n    pageWrapper.frame = pageWrapperFrame;\n    videoWrapper.frame = videoWrapperFrame;\n    videoView.frame = videoWrapperFrame;\n    self.controllerView.frame = videoView.frame;\n    self.bodyView.frame = CGRectMake(0,\n                                     videoView.frame.size.height,// keep stay on bottom of videoView\n                                     self.bodyView.frame.size.width,\n                                     self.bodyView.frame.size.height);\n    borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                  videoView.frame.origin.x - 1,\n                                  videoView.frame.size.width + 1,\n                                  videoView.frame.size.height + 1);\n\n    // parentViewにのってるViewは pageWrapper と videoWrapper と transparentView\n    // pageWrapper と videoWrapper をself.viewと同様のアニメーションをさせた後に、parentViewに戻す\n    // transparentView は あとで1にすればいい\n    pageWrapper.frame = CGRectMake(windowFrame.size.width - 50,\n                                 windowFrame.size.height - 150,\n                                 pageWrapper.frame.size.width,\n                                 pageWrapper.frame.size.height);\n//    pageWrapper.transform = CGAffineTransformMakeScale(0.2, 0.2);\n\n    videoWrapper.frame = CGRectMake(windowFrame.size.width - 50,\n                                   windowFrame.size.height - 150,\n                                   videoWrapper.frame.size.width,\n                                   videoWrapper.frame.size.height);\n//    videoWrapper.transform = CGAffineTransformMakeScale(0.2, 0.2);\n    \n    [UIView animateWithDuration:0.5\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n//                         pageWrapper.transform = CGAffineTransformMakeScale(1.0, 1.0);\n                         pageWrapper.alpha = 1;\n                         pageWrapper.frame = CGRectMake(windowFrame.origin.x,\n                                                         windowFrame.origin.y,\n                                                         pageWrapper.frame.size.width,\n                                                         pageWrapper.frame.size.height);\n\n//                         videoWrapper.transform = CGAffineTransformMakeScale(1.0, 1.0);\n                         videoWrapper.alpha = 1;\n                         videoWrapper.frame = CGRectMake(windowFrame.origin.x,\n                                                      windowFrame.origin.y,\n                                                      videoWrapper.frame.size.width,\n                                                      videoWrapper.frame.size.height);\n                         \n                     }\n                     completion:^(BOOL finished) {\n                         \n                         transparentBlackSheet.alpha = 1.0;\n\n                         for (UIGestureRecognizer *recognizer in videoWrapper.gestureRecognizers) {\n                             if([recognizer isKindOfClass:[UITapGestureRecognizer class]]) {\n                                 [videoWrapper removeGestureRecognizer:recognizer];\n                             }\n                         }\n                         UITapGestureRecognizer* expandedTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapExpandedVideoView)];\n                         expandedTap.numberOfTapsRequired = 1;\n                         expandedTap.delegate = self;\n                         [videoWrapper addGestureRecognizer:expandedTap];\n\n                         isExpandedMode = TRUE;\n                         [self didExpand];\n                         [self didReAppear];\n                     }];\n}\n\n\n\n- (void) bringToFront {\n//    [parentView addSubview:self.view];// then, \"viewDidLoad\" called\n//    [parentView addSubview:transparentBlackSheet];\n//    [parentView addSubview:pageWrapper];\n//    [parentView addSubview:videoWrapper];\n    if (isSetuped) {\n        [[self getWindow] bringSubviewToFront:self.view];\n        [[self getWindow] bringSubviewToFront:transparentBlackSheet];\n        [[self getWindow] bringSubviewToFront:pageWrapper];\n        [[self getWindow] bringSubviewToFront:videoWrapper];\n    }\n}\n//\n//- (void) changeParentVC: (UIViewController*) parentVC {\n////    if (isSetuped) {\n////        parentView = parentVC.view;\n////        [parentView addSubview:self.view];// then, \"viewDidLoad\" called\n////        [parentView addSubview:transparentBlackSheet];\n////        [parentView addSubview:pageWrapper];\n////        [parentView addSubview:videoWrapper];\n////    }\n//}\n//\n\n- (UIWindow *) getWindow {\n    return [[[UIApplication sharedApplication] delegate] window];\n}\n\n\n-(void)removeAllViews\n{\n    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationSlide];\n    [videoWrapper removeFromSuperview];\n    [pageWrapper removeFromSuperview];\n    [transparentBlackSheet removeFromSuperview];\n    [self.view removeFromSuperview];\n}\n\n- (void)dealloc\n{\n    //    NSLog(@\"dealloc DraggableFloatingViewController\");\n}\n\n\n\n\n\n\n\n\n\n-(void) showMessageView {\n    self.messageView.hidden = FALSE;\n}\n-(void) hideMessageView {\n    self.messageView.hidden = TRUE;\n}\n\n\n\n-(void) setHideControllerTimer {\n    if ([hideControllerTimer isValid]) {\n        [hideControllerTimer invalidate];\n    }\n    hideControllerTimer = [NSTimer scheduledTimerWithTimeInterval:3.0f\n                                                           target:self\n                                                         selector:@selector(hideControllerView)\n                                                         userInfo:nil\n                                                          repeats:NO];\n}\n-(void) showControllerView {\n    NSLog(@\"showControllerView\");\n    isDisplayController = true;\n    [self setHideControllerTimer];\n    [UIView animateWithDuration:0.5\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         self.controllerView.alpha = 1.0;\n                     }\n                     completion:^(BOOL finished) {\n                     }];\n}\n-(void) hideControllerView {\n    NSLog(@\"hideControllerView\");\n    isDisplayController = false;\n    if ([hideControllerTimer isValid]) {\n        [hideControllerTimer invalidate];\n    }\n    [UIView animateWithDuration:0.5\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         self.controllerView.alpha = 0.0;\n                     }\n                     completion:^(BOOL finished) {\n                     }];\n}\n\n\n\n\n\n\n\n\n\n\n\n\n- (void) showControllerAfterExpanded {\n    [NSTimer scheduledTimerWithTimeInterval:0.5f\n                                     target:self\n                                   selector:@selector(showControllerView)\n                                   userInfo:nil\n                                    repeats:NO];\n}\n\n\n\n\n# pragma  mark - tap action\n//- (void) onTapDownButton {\n//    [self minimizeView];\n//}\n\n\n- (void) onTapExpandedVideoView {\n    NSLog(@\"onTapExpandedVideoView\");\n    if (self.controllerView.alpha == 0.0) {\n        [self showControllerView];\n    }\n    else if (self.controllerView.alpha == 1.0){\n        [self hideControllerView];\n    }\n}\n\n- (void)expandViewOnTap:(UITapGestureRecognizer*)sender {\n    [self expandView];\n    [self showControllerAfterExpanded];\n    \n}\n\n\n\n#pragma mark- Pan Gesture Selector Action\n\n-(void)panAction:(UIPanGestureRecognizer *)recognizer\n{\n    CGFloat touchPosInViewY = [recognizer locationInView:self.view].y;\n    \n    \n    if(recognizer.state == UIGestureRecognizerStateBegan) {\n\n        direction = UIPanGestureRecognizerDirectionUndefined;\n        //storing direction\n        CGPoint velocity = [recognizer velocityInView:recognizer.view];\n        [self detectPanDirection:velocity];\n        \n        isMinimizingByGesture = false;\n        //Snag the Y position of the touch when panning begins\n        _touchPositionInHeaderY = [recognizer locationInView:videoWrapper].y;\n        _touchPositionInHeaderX = [recognizer locationInView:videoWrapper].x;\n        if(direction == UIPanGestureRecognizerDirectionDown) {\n            if(videoView.frame.size.height > minimamVideoHeight) {\n                // player.controlStyle = MPMovieControlStyleNone;\n                NSLog(@\"minimize gesture start\");\n                isMinimizingByGesture = true;\n                [self didStartMinimizeGesture];\n            }\n        }\n    }\n\n    \n    else if(recognizer.state == UIGestureRecognizerStateChanged) {\n        if(direction == UIPanGestureRecognizerDirectionDown || direction == UIPanGestureRecognizerDirectionUp) {\n\n//            CGFloat appendY = 20;\n//            if (direction == UIPanGestureRecognizerDirectionUp) appendY = -appendY;\n            \n            CGFloat newOffsetY = touchPosInViewY - _touchPositionInHeaderY;// + appendY;\n\n            // CGFloat newOffsetX = newOffsetY * 0.35;\n            [self adjustViewOnVerticalPan:newOffsetY recognizer:recognizer];\n        }\n        else if (direction==UIPanGestureRecognizerDirectionRight || direction==UIPanGestureRecognizerDirectionLeft) {\n            [self adjustViewOnHorizontalPan:recognizer];\n        }\n    }\n\n\n    \n    else if(recognizer.state == UIGestureRecognizerStateEnded) {\n\n        CGPoint velocity = [recognizer velocityInView:recognizer.view];\n\n        if(direction == UIPanGestureRecognizerDirectionDown || direction == UIPanGestureRecognizerDirectionUp)\n        {\n            if(velocity.y < -flickVelocity)\n            {\n//                NSLog(@\"flick up\");\n                [self expandView];\n                if (isMinimizingByGesture == false) {\n                    [self showControllerAfterExpanded];\n                }\n                [recognizer setTranslation:CGPointZero inView:recognizer.view];\n                return;\n            }\n            else if(velocity.y > flickVelocity)\n            {\n//                NSLog(@\"flick down\");\n                [self minimizeView];\n                [recognizer setTranslation:CGPointZero inView:recognizer.view];\n                return;\n            }\n            else if(recognizer.view.frame.origin.y>(windowFrame.size.width/2))\n            {\n                [self minimizeView];\n                [recognizer setTranslation:CGPointZero inView:recognizer.view];\n                return;\n            }\n            else if(recognizer.view.frame.origin.y < (windowFrame.size.width/2) || recognizer.view.frame.origin.y < 0)\n            {\n                [self expandView];\n                if (isMinimizingByGesture == false) {\n                    [self showControllerAfterExpanded];\n                }\n                [recognizer setTranslation:CGPointZero inView:recognizer.view];\n                return;\n            }\n        }\n        \n        else if (direction==UIPanGestureRecognizerDirectionLeft)\n        {\n            if(pageWrapper.alpha <= 0)\n            {\n                if(velocity.x < -flickVelocity || pageWrapper.alpha < 0.3)\n                {\n                    [self fadeOutViewToLeft:recognizer completion: ^{\n                        [self disappear];\n                    }];\n                    return;\n                }\n                else if(recognizer.view.frame.origin.x < 0)\n                {\n                    [self disappear];\n                }\n                else\n                {\n                    [self animateMiniViewToNormalPosition:recognizer completion:nil];\n                    \n                }\n            }\n        }\n        \n        else if (direction==UIPanGestureRecognizerDirectionRight)\n        {\n            if(pageWrapper.alpha <= 0)\n            {\n                if(velocity.x > flickVelocity)\n                {\n                    [self fadeOutViewToRight:recognizer completion: ^{\n                        [self disappear];\n                    }];\n                    return;\n                }\n                if(recognizer.view.frame.origin.x > windowFrame.size.width - 50)\n                {\n                    [self disappear];\n                }\n                else\n                {\n                    [self animateMiniViewToNormalPosition:recognizer completion:nil];\n                }\n            }\n        }\n\n        isMinimizingByGesture = false;\n    }\n}\n\n\n-(void)detectPanDirection:(CGPoint )velocity\n{\n//    foldButton.hidden=TRUE;\n    BOOL isVerticalGesture = fabs(velocity.y) > fabs(velocity.x);\n    \n    if (isVerticalGesture)\n    {\n        if (velocity.y > 0) {\n            direction = UIPanGestureRecognizerDirectionDown;\n            \n        } else {\n            direction = UIPanGestureRecognizerDirectionUp;\n        }\n    }\n    else\n    {\n        if(velocity.x > 0)\n        {\n            direction = UIPanGestureRecognizerDirectionRight;\n        }\n        else\n        {\n            direction = UIPanGestureRecognizerDirectionLeft;\n        }\n    }\n}\n\n\n\n-(void)adjustViewOnVerticalPan:(CGFloat)newOffsetY recognizer:(UIPanGestureRecognizer *)recognizer\n{\n    CGFloat touchPosInViewY = [recognizer locationInView:self.view].y;\n    \n    CGFloat progressRate = newOffsetY / finalViewOffsetY;\n    \n    if(progressRate >= 0.99) {\n        progressRate = 1;\n        newOffsetY = finalViewOffsetY;\n    }\n    \n    [self calcNewFrameWithParsentage:progressRate newOffsetY:newOffsetY];\n    \n    if (progressRate <= 1 && pageWrapper.frame.origin.y >= 0) {\n        pageWrapper.frame = wFrame;\n        videoWrapper.frame = vFrame;\n        videoView.frame = CGRectMake(\n                                     videoView.frame.origin.x,  videoView.frame.origin.x,\n                                     vFrame.size.width, vFrame.size.height\n                                     );\n        self.bodyView.frame = CGRectMake(\n                                         0,\n                                         videoView.frame.size.height,// keep stay on bottom of videoView\n                                         self.bodyView.frame.size.width,\n                                         self.bodyView.frame.size.height\n                                         );\n        \n        borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                      videoView.frame.origin.x - 1,\n                                      videoView.frame.size.width + 1,\n                                      videoView.frame.size.height + 1);\n        \n        self.controllerView.frame = videoView.frame;\n        \n        CGFloat percentage = touchPosInViewY / windowFrame.size.height;\n        \n        pageWrapper.alpha = transparentBlackSheet.alpha = 1.0 - (percentage * 1.5);\n        if (percentage > 0.2) borderView.alpha = percentage;\n        else borderView.alpha = 0;\n        \n        if (isDisplayController) {\n            self.controllerView.alpha = 1.0 - (percentage * 2);\n//            if (percentage > 0.2) borderView.alpha = percentage;\n//            else borderView.alpha = 0;\n        }\n        \n        if(direction==UIPanGestureRecognizerDirectionDown)\n        {\n//            [parentView bringSubviewToFront:self.view];\n            [self bringToFront];\n        }\n        \n        \n        if(direction==UIPanGestureRecognizerDirectionUp && videoView.frame.origin.y <= 10)\n        {\n            [self didFullExpandByGesture];\n        }\n    }\n    // what is this case...?\n    else if (wFrame.origin.y < finalViewOffsetY && wFrame.origin.y > 0)\n    {\n        pageWrapper.frame = wFrame;\n        videoWrapper.frame = vFrame;\n        videoView.frame=CGRectMake( videoView.frame.origin.x,  videoView.frame.origin.x, vFrame.size.width, vFrame.size.height);\n        \n        self.bodyView.frame = CGRectMake(\n                                         0,\n                                         videoView.frame.size.height,// keep stay on bottom of videoView\n                                         self.bodyView.frame.size.width,\n                                         self.bodyView.frame.size.height\n                                         );\n        borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                      videoView.frame.origin.x - 1,\n                                      videoView.frame.size.width + 1,\n                                      videoView.frame.size.height + 1);\n        \n        borderView.alpha = progressRate;\n        \n        self.controllerView.frame = videoView.frame;\n    }\n    \n    \n    [recognizer setTranslation:CGPointZero inView:recognizer.view];\n    \n}\n\n\n\n\n-(void)adjustViewOnHorizontalPan:(UIPanGestureRecognizer *)recognizer {\n    //    [self.txtViewGrowing resignFirstResponder];\n    if(pageWrapper.alpha<=0) {\n        \n        CGFloat x = [recognizer locationInView:self.view].x;\n        \n        if (direction==UIPanGestureRecognizerDirectionLeft)\n        {\n//            NSLog(@\"recognizer x=%f\",recognizer.view.frame.origin.x);\n            CGPoint velocity = [recognizer velocityInView:recognizer.view];\n            \n            BOOL isVerticalGesture = fabs(velocity.y) > fabs(velocity.x);\n            \n            \n            CGPoint translation = [recognizer translationInView:recognizer.view];\n            \n            recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x,\n                                                 recognizer.view.center.y );\n            \n            \n            if (!isVerticalGesture) {\n                \n                CGFloat percentage = (x/windowFrame.size.width);\n                \n                recognizer.view.alpha = percentage;\n                \n            }\n            \n            [recognizer setTranslation:CGPointZero inView:recognizer.view];\n        }\n        else if (direction==UIPanGestureRecognizerDirectionRight)\n        {\n//            NSLog(@\"recognizer x=%f\",recognizer.view.frame.origin.x);\n            CGPoint velocity = [recognizer velocityInView:recognizer.view];\n            \n            BOOL isVerticalGesture = fabs(velocity.y) > fabs(velocity.x);\n            \n            CGPoint translation = [recognizer translationInView:recognizer.view];\n            \n            recognizer.view.center = CGPointMake(recognizer.view.center.x + translation.x,\n                                                 recognizer.view.center.y );\n            \n            if (!isVerticalGesture) {\n                \n                if(velocity.x > 0)\n                {\n                    \n                    CGFloat percentage = (x/windowFrame.size.width);\n                    recognizer.view.alpha =1.0- percentage;                }\n                else\n                {\n                    CGFloat percentage = (x/windowFrame.size.width);\n                    recognizer.view.alpha =percentage;\n                    \n                    \n                }\n                \n            }\n            \n            [recognizer setTranslation:CGPointZero inView:recognizer.view];\n        }\n    }\n}\n\n\n- (void) calcNewFrameWithParsentage:(CGFloat) persentage newOffsetY:(CGFloat) newOffsetY{\n    CGFloat newWidth = minimamVideoWidth + ((maxW - minimamVideoWidth) * (1 - persentage));\n    CGFloat newHeight = newWidth * videoHeightRatio;\n    \n    CGFloat newOffsetX = maxW - newWidth - (finalMargin * persentage);\n    \n    vFrame.size.width = newWidth;//self.view.bounds.size.width - xOffset;\n    vFrame.size.height = newHeight;//(200 - xOffset * 0.5);\n    \n    vFrame.origin.y = newOffsetY;//trueOffset - finalMargin * 2;\n    wFrame.origin.y = newOffsetY;\n    \n    vFrame.origin.x = newOffsetX;//maxW - vFrame.size.width - finalMargin;\n    wFrame.origin.x = newOffsetX;\n    //    vFrame.origin.y = realNewOffsetY;//trueOffset - finalMargin * 2;\n    //    wFrame.origin.y = realNewOffsetY;\n    \n}\n\n-(void) setFinalFrame {\n    vFrame.size.width = minimamVideoWidth;//self.view.bounds.size.width - xOffset;\n    // ↓\n    vFrame.size.height = vFrame.size.width * videoHeightRatio;//(200 - xOffset * 0.5);\n    vFrame.origin.y = maxH - vFrame.size.height - finalMargin;//trueOffset - finalMargin * 2;\n    vFrame.origin.x = maxW - vFrame.size.width - finalMargin;\n    wFrame.origin.y = vFrame.origin.y;\n    wFrame.origin.x = vFrame.origin.x;\n}\n\n\n\n\n\n\n\n\n\n# pragma mark - animations\n\n-(void)expandView\n{\n    //        [self.txtViewGrowing resignFirstResponder];\n    [UIView animateWithDuration:0.5\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         pageWrapper.frame = pageWrapperFrame;\n                         videoWrapper.frame = videoWrapperFrame;\n                         videoWrapper.alpha = 1;\n                         videoView.frame = videoWrapperFrame;\n                         pageWrapper.alpha = 1.0;\n                         transparentBlackSheet.alpha = 1.0;\n                         borderView.alpha = 0.0;\n\n                         self.bodyView.frame = CGRectMake(0,\n                                                          videoView.frame.size.height,// keep stay on bottom of videoView\n                                                          self.bodyView.frame.size.width,\n                                                          self.bodyView.frame.size.height);\n\n                         borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                                       videoView.frame.origin.x - 1,\n                                                       videoView.frame.size.width + 1,\n                                                       videoView.frame.size.height + 1);\n                         \n                         self.controllerView.frame = videoView.frame;\n                     }\n                     completion:^(BOOL finished) {\n\n                         for (UIGestureRecognizer *recognizer in videoWrapper.gestureRecognizers) {\n                             if([recognizer isKindOfClass:[UITapGestureRecognizer class]]) {\n                                 [videoWrapper removeGestureRecognizer:recognizer];\n                             }\n                         }\n                         \n                         UITapGestureRecognizer* expandedTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onTapExpandedVideoView)];\n                         expandedTap.numberOfTapsRequired = 1;\n                         expandedTap.delegate = self;\n                         [videoWrapper addGestureRecognizer:expandedTap];\n\n                         \n                         // player.controlStyle = MPMovieControlStyleDefault;\n                         // [self showVideoControl];\n                         isExpandedMode = TRUE;\n//                         self.controllerView.hidden = FALSE;\n                         [self didExpand];\n                     }];\n}\n\n\n\n-(void)minimizeView\n{\n//    self.controllerView.hidden = TRUE;\n    \n    [self setFinalFrame];\n    [self hideControllerView];\n\n    [UIView animateWithDuration:0.5\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         pageWrapper.frame = wFrame;\n                         videoWrapper.frame = vFrame;\n                         videoView.frame=CGRectMake( videoView.frame.origin.x,  videoView.frame.origin.x, vFrame.size.width, vFrame.size.height);\n                         pageWrapper.alpha=0;\n                         transparentBlackSheet.alpha=0.0;\n                         borderView.alpha = 1.0;\n\n                         borderView.frame = CGRectMake(videoView.frame.origin.y - 1,\n                                                       videoView.frame.origin.x - 1,\n                                                       videoView.frame.size.width + 1,\n                                                       videoView.frame.size.height + 1);\n\n                         self.controllerView.frame = videoView.frame;\n                     }\n                     completion:^(BOOL finished) {\n//                         [self hideVideoControl];\n                         [self didMinimize];\n                         //add tap gesture\n                         tapRecognizer = nil;\n                         if(tapRecognizer == nil)\n                         {\n                             \n                             for (UIGestureRecognizer *recognizer in videoWrapper.gestureRecognizers) {\n                                 if([recognizer isKindOfClass:[UITapGestureRecognizer class]]) {\n                                     [videoWrapper removeGestureRecognizer:recognizer];\n                                 }\n                             }\n                             \n                             tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(expandViewOnTap:)];\n                             tapRecognizer.numberOfTapsRequired = 1;\n                             tapRecognizer.delegate = self;\n                             [videoWrapper addGestureRecognizer:tapRecognizer];\n                         }\n                         \n                         isExpandedMode=FALSE;\n                         minimizedVideoFrame = videoWrapper.frame;\n                         \n                         if(direction==UIPanGestureRecognizerDirectionDown)\n                         {\n//                             [parentView bringSubviewToFront:self.view];\n                             [self bringToFront];\n                         }\n                     }];\n}\n\n-(void)animateMiniViewToNormalPosition:(UIPanGestureRecognizer *)recognizer completion:(void (^)())completion {\n\n    [self setFinalFrame];\n\n    [UIView animateWithDuration:0.25\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         pageWrapper.frame = wFrame;\n                         videoWrapper.frame = vFrame;\n                         videoView.frame=CGRectMake(\n                                                    videoView.frame.origin.x,\n                                                    videoView.frame.origin.x,\n                                                    vFrame.size.width,\n                                                    vFrame.size.height\n                                                );\n                         pageWrapper.alpha = 0;\n                         videoWrapper.alpha = 1;\n                         borderView.alpha = 1;\n                         \n                         self.controllerView.frame = videoView.frame;\n                     }\n                     completion:^(BOOL finished) {\n                         if (completion) completion();\n                     }];\n    [recognizer setTranslation:CGPointZero inView:recognizer.view];\n}\n\n-(void)fadeOutViewToRight:(UIPanGestureRecognizer *)recognizer completion:(void (^)())completion {\n//    [self.txtViewGrowing resignFirstResponder];\n    \n    vFrame.origin.x = maxW + minimamVideoWidth;\n    wFrame.origin.x = maxW + minimamVideoWidth;\n\n    [UIView animateWithDuration:0.1\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         pageWrapper.frame = wFrame;\n                         videoWrapper.frame = vFrame;\n                         videoView.frame=CGRectMake( videoView.frame.origin.x,  videoView.frame.origin.x, vFrame.size.width, vFrame.size.height);\n                         pageWrapper.alpha = 0;\n                         videoWrapper.alpha = 0;\n                         borderView.alpha = 0;\n                         \n                         self.controllerView.frame = videoView.frame;\n                     }\n                     completion:^(BOOL finished) {\n                         if (completion) completion();\n                         [self didDisappear];\n                     }];\n    [recognizer setTranslation:CGPointZero inView:recognizer.view];\n}\n\n-(void)fadeOutViewToLeft:(UIPanGestureRecognizer *)recognizer completion:(void (^)())completion {\n//    [self.txtViewGrowing resignFirstResponder];\n    \n    vFrame.origin.x = -maxW;\n    wFrame.origin.x = -maxW;\n\n    [UIView animateWithDuration:0.1\n                          delay:0.0\n                        options:UIViewAnimationOptionCurveEaseInOut\n                     animations:^ {\n                         pageWrapper.frame = wFrame;\n                         videoWrapper.frame = vFrame;\n                         videoView.frame=CGRectMake( videoView.frame.origin.x,  videoView.frame.origin.x, vFrame.size.width, vFrame.size.height);\n                         pageWrapper.alpha = 0;\n                         videoWrapper.alpha = 0;\n                         borderView.alpha = 0;\n                         \n                         self.controllerView.frame = videoView.frame;\n                     }\n                     completion:^(BOOL finished) {\n                         if (completion) completion();\n                         [self didDisappear];\n                     }];\n    \n    [recognizer setTranslation:CGPointZero inView:recognizer.view];\n}\n\n\n#pragma mark- Pan Gesture Delagate\n\n- (BOOL)gestureRecognizerShould:(UIGestureRecognizer *)gestureRecognizer {\n    if(gestureRecognizer.view.frame.origin.y < 0)\n    {\n        return NO;\n    }\n    else {\n        return YES;\n    }\n}\n\n- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer\n{\n    return YES;\n}\n\n\n\n#pragma mark- Status Bar Hidden function\n\n- (BOOL)prefersStatusBarHidden {\n    return YES;\n}\n- (UIInterfaceOrientationMask) supportedInterfaceOrientations {\n    return UIInterfaceOrientationMaskPortrait;\n}\n- (BOOL)shouldAutorotate\n{\n    return NO;\n}\n\n@end\n"
  },
  {
    "path": "YouTubeDraggableVideo/main.m",
    "content": "//\n//  main.m\n//  YouTubeDraggableVideo\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import \"AppDelegate.h\"\n\nint main(int argc, char * argv[]) {\n    @autoreleasepool {\n        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n    }\n}\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t253F2E2D1A7F5907007FD89E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 253F2E2C1A7F5907007FD89E /* main.m */; };\n\t\t253F2E381A7F5907007FD89E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 253F2E371A7F5907007FD89E /* Images.xcassets */; };\n\t\t253F2E3B1A7F5907007FD89E /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 253F2E391A7F5907007FD89E /* LaunchScreen.xib */; };\n\t\t253F2E471A7F5907007FD89E /* YouTubeDraggableVideoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 253F2E461A7F5907007FD89E /* YouTubeDraggableVideoTests.m */; };\n\t\t253F2E5C1A7F6027007FD89E /* profilePhoto.png in Resources */ = {isa = PBXBuildFile; fileRef = 253F2E5B1A7F6027007FD89E /* profilePhoto.png */; };\n\t\tB01147D81B33B30300D4CEB6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = B01147D71B33B30300D4CEB6 /* AppDelegate.swift */; };\n\t\tB01147DA1B33D56900D4CEB6 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B01147D91B33D56900D4CEB6 /* SecondViewController.swift */; };\n\t\tB01147DC1B33DAC700D4CEB6 /* NSTimerHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = B01147DB1B33DAC700D4CEB6 /* NSTimerHelper.swift */; };\n\t\tB0125D7B1B1BD88B005FF053 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0125D781B1BD88B005FF053 /* FirstViewController.swift */; };\n\t\tB0125D7C1B1BD88B005FF053 /* VideoDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0125D791B1BD88B005FF053 /* VideoDetailViewController.swift */; };\n\t\tB0125D801B1BD897005FF053 /* DraggableFloatingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B0125D7F1B1BD897005FF053 /* DraggableFloatingViewController.m */; };\n\t\tB04E93C31B168CEB004384E8 /* test.mp4 in Resources */ = {isa = PBXBuildFile; fileRef = B04E93C21B168CEB004384E8 /* test.mp4 */; };\n\t\tB0B076F01B33F36A004A027A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = B0B076EF1B33F36A004A027A /* AppDelegate.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t253F2E411A7F5907007FD89E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 253F2E1F1A7F5907007FD89E /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 253F2E261A7F5907007FD89E;\n\t\t\tremoteInfo = YouTubeDraggableVideo;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t253F2E271A7F5907007FD89E /* YouTubeDraggableVideo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YouTubeDraggableVideo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t253F2E2B1A7F5907007FD89E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t253F2E2C1A7F5907007FD89E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t253F2E371A7F5907007FD89E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\t253F2E3A1A7F5907007FD89E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = \"<group>\"; };\n\t\t253F2E401A7F5907007FD89E /* YouTubeDraggableVideoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = YouTubeDraggableVideoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t253F2E451A7F5907007FD89E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t253F2E461A7F5907007FD89E /* YouTubeDraggableVideoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YouTubeDraggableVideoTests.m; sourceTree = \"<group>\"; };\n\t\t253F2E5B1A7F6027007FD89E /* profilePhoto.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = profilePhoto.png; sourceTree = \"<group>\"; };\n\t\tB01147D71B33B30300D4CEB6 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\tB01147D91B33D56900D4CEB6 /* SecondViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecondViewController.swift; sourceTree = \"<group>\"; };\n\t\tB01147DB1B33DAC700D4CEB6 /* NSTimerHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSTimerHelper.swift; sourceTree = \"<group>\"; };\n\t\tB0125D781B1BD88B005FF053 /* FirstViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FirstViewController.swift; sourceTree = \"<group>\"; };\n\t\tB0125D791B1BD88B005FF053 /* VideoDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VideoDetailViewController.swift; sourceTree = \"<group>\"; };\n\t\tB0125D7A1B1BD88B005FF053 /* YouTubeDraggableVideo-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"YouTubeDraggableVideo-Bridging-Header.h\"; sourceTree = \"<group>\"; };\n\t\tB0125D7E1B1BD897005FF053 /* DraggableFloatingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DraggableFloatingViewController.h; sourceTree = \"<group>\"; };\n\t\tB0125D7F1B1BD897005FF053 /* DraggableFloatingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DraggableFloatingViewController.m; sourceTree = \"<group>\"; };\n\t\tB04E93C21B168CEB004384E8 /* test.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = test.mp4; sourceTree = \"<group>\"; };\n\t\tB04E93C41B168D16004384E8 /* sample.mp4 */ = {isa = PBXFileReference; lastKnownFileType = file; path = sample.mp4; sourceTree = \"<group>\"; };\n\t\tB0B076EE1B33F36A004A027A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tB0B076EF1B33F36A004A027A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t253F2E241A7F5907007FD89E /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t253F2E3D1A7F5907007FD89E /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t253F2E1E1A7F5907007FD89E = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E291A7F5907007FD89E /* YouTubeDraggableVideo */,\n\t\t\t\t253F2E431A7F5907007FD89E /* YouTubeDraggableVideoTests */,\n\t\t\t\t253F2E281A7F5907007FD89E /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t253F2E281A7F5907007FD89E /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E271A7F5907007FD89E /* YouTubeDraggableVideo.app */,\n\t\t\t\t253F2E401A7F5907007FD89E /* YouTubeDraggableVideoTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t253F2E291A7F5907007FD89E /* YouTubeDraggableVideo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB0125D7D1B1BD897005FF053 /* Source */,\n\t\t\t\tB0125D771B1BD88B005FF053 /* Demo */,\n\t\t\t\t253F2E371A7F5907007FD89E /* Images.xcassets */,\n\t\t\t\t253F2E391A7F5907007FD89E /* LaunchScreen.xib */,\n\t\t\t\tB04E93C11B168CEB004384E8 /* sampleMovies */,\n\t\t\t\t253F2E2A1A7F5907007FD89E /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = YouTubeDraggableVideo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t253F2E2A1A7F5907007FD89E /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E5B1A7F6027007FD89E /* profilePhoto.png */,\n\t\t\t\t253F2E2B1A7F5907007FD89E /* Info.plist */,\n\t\t\t\t253F2E2C1A7F5907007FD89E /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t253F2E431A7F5907007FD89E /* YouTubeDraggableVideoTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E461A7F5907007FD89E /* YouTubeDraggableVideoTests.m */,\n\t\t\t\t253F2E441A7F5907007FD89E /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = YouTubeDraggableVideoTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t253F2E441A7F5907007FD89E /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E451A7F5907007FD89E /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tB0125D771B1BD88B005FF053 /* Demo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB0125D791B1BD88B005FF053 /* VideoDetailViewController.swift */,\n\t\t\t\tB0125D781B1BD88B005FF053 /* FirstViewController.swift */,\n\t\t\t\tB01147D91B33D56900D4CEB6 /* SecondViewController.swift */,\n\t\t\t\tB01147DB1B33DAC700D4CEB6 /* NSTimerHelper.swift */,\n\t\t\t\tB0B076EE1B33F36A004A027A /* AppDelegate.h */,\n\t\t\t\tB0B076EF1B33F36A004A027A /* AppDelegate.m */,\n\t\t\t\tB01147D71B33B30300D4CEB6 /* AppDelegate.swift */,\n\t\t\t\tB0125D7A1B1BD88B005FF053 /* YouTubeDraggableVideo-Bridging-Header.h */,\n\t\t\t);\n\t\t\tpath = Demo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tB0125D7D1B1BD897005FF053 /* Source */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB0125D7E1B1BD897005FF053 /* DraggableFloatingViewController.h */,\n\t\t\t\tB0125D7F1B1BD897005FF053 /* DraggableFloatingViewController.m */,\n\t\t\t);\n\t\t\tpath = Source;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tB04E93C11B168CEB004384E8 /* sampleMovies */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tB04E93C41B168D16004384E8 /* sample.mp4 */,\n\t\t\t\tB04E93C21B168CEB004384E8 /* test.mp4 */,\n\t\t\t);\n\t\t\tpath = sampleMovies;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t253F2E261A7F5907007FD89E /* YouTubeDraggableVideo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 253F2E4A1A7F5907007FD89E /* Build configuration list for PBXNativeTarget \"YouTubeDraggableVideo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t253F2E231A7F5907007FD89E /* Sources */,\n\t\t\t\t253F2E241A7F5907007FD89E /* Frameworks */,\n\t\t\t\t253F2E251A7F5907007FD89E /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = YouTubeDraggableVideo;\n\t\t\tproductName = YouTubeDraggableVideo;\n\t\t\tproductReference = 253F2E271A7F5907007FD89E /* YouTubeDraggableVideo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t253F2E3F1A7F5907007FD89E /* YouTubeDraggableVideoTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 253F2E4D1A7F5907007FD89E /* Build configuration list for PBXNativeTarget \"YouTubeDraggableVideoTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t253F2E3C1A7F5907007FD89E /* Sources */,\n\t\t\t\t253F2E3D1A7F5907007FD89E /* Frameworks */,\n\t\t\t\t253F2E3E1A7F5907007FD89E /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t253F2E421A7F5907007FD89E /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = YouTubeDraggableVideoTests;\n\t\t\tproductName = YouTubeDraggableVideoTests;\n\t\t\tproductReference = 253F2E401A7F5907007FD89E /* YouTubeDraggableVideoTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t253F2E1F1A7F5907007FD89E /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1220;\n\t\t\t\tORGANIZATIONNAME = \"Sandeep Mukherjee\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t253F2E261A7F5907007FD89E = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t\tDevelopmentTeam = 8ET8BLFZ87;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t\t253F2E3F1A7F5907007FD89E = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t\tTestTargetID = 253F2E261A7F5907007FD89E;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 253F2E221A7F5907007FD89E /* Build configuration list for PBXProject \"YouTubeDraggableVideo\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 253F2E1E1A7F5907007FD89E;\n\t\t\tproductRefGroup = 253F2E281A7F5907007FD89E /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t253F2E261A7F5907007FD89E /* YouTubeDraggableVideo */,\n\t\t\t\t253F2E3F1A7F5907007FD89E /* YouTubeDraggableVideoTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t253F2E251A7F5907007FD89E /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t253F2E5C1A7F6027007FD89E /* profilePhoto.png in Resources */,\n\t\t\t\tB04E93C31B168CEB004384E8 /* test.mp4 in Resources */,\n\t\t\t\t253F2E3B1A7F5907007FD89E /* LaunchScreen.xib in Resources */,\n\t\t\t\t253F2E381A7F5907007FD89E /* Images.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t253F2E3E1A7F5907007FD89E /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t253F2E231A7F5907007FD89E /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tB01147DA1B33D56900D4CEB6 /* SecondViewController.swift in Sources */,\n\t\t\t\tB01147D81B33B30300D4CEB6 /* AppDelegate.swift in Sources */,\n\t\t\t\t253F2E2D1A7F5907007FD89E /* main.m in Sources */,\n\t\t\t\tB0125D7C1B1BD88B005FF053 /* VideoDetailViewController.swift in Sources */,\n\t\t\t\tB0B076F01B33F36A004A027A /* AppDelegate.m in Sources */,\n\t\t\t\tB0125D801B1BD897005FF053 /* DraggableFloatingViewController.m in Sources */,\n\t\t\t\tB0125D7B1B1BD88B005FF053 /* FirstViewController.swift in Sources */,\n\t\t\t\tB01147DC1B33DAC700D4CEB6 /* NSTimerHelper.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t253F2E3C1A7F5907007FD89E /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t253F2E471A7F5907007FD89E /* YouTubeDraggableVideoTests.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t253F2E421A7F5907007FD89E /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 253F2E261A7F5907007FD89E /* YouTubeDraggableVideo */;\n\t\t\ttargetProxy = 253F2E411A7F5907007FD89E /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t253F2E391A7F5907007FD89E /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t253F2E3A1A7F5907007FD89E /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t253F2E481A7F5907007FD89E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t253F2E491A7F5907007FD89E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t253F2E4B1A7F5907007FD89E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"Apple Development\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = 8ET8BLFZ87;\n\t\t\t\tINFOPLIST_FILE = YouTubeDraggableVideo/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.vizllx.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPROVISIONING_PROFILE = \"\";\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"YouTubeDraggableVideo/Demo/YouTubeDraggableVideo-Bridging-Header.h\";\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t253F2E4C1A7F5907007FD89E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"Apple Development\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = 8ET8BLFZ87;\n\t\t\t\tINFOPLIST_FILE = YouTubeDraggableVideo/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.vizllx.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tPROVISIONING_PROFILE = \"\";\n\t\t\t\tPROVISIONING_PROFILE_SPECIFIER = \"\";\n\t\t\t\tSWIFT_OBJC_BRIDGING_HEADER = \"YouTubeDraggableVideo/Demo/YouTubeDraggableVideo-Bridging-Header.h\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t253F2E4E1A7F5907007FD89E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = YouTubeDraggableVideoTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.vizllx.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/YouTubeDraggableVideo.app/YouTubeDraggableVideo\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t253F2E4F1A7F5907007FD89E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = YouTubeDraggableVideoTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.vizllx.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/YouTubeDraggableVideo.app/YouTubeDraggableVideo\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t253F2E221A7F5907007FD89E /* Build configuration list for PBXProject \"YouTubeDraggableVideo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t253F2E481A7F5907007FD89E /* Debug */,\n\t\t\t\t253F2E491A7F5907007FD89E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t253F2E4A1A7F5907007FD89E /* Build configuration list for PBXNativeTarget \"YouTubeDraggableVideo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t253F2E4B1A7F5907007FD89E /* Debug */,\n\t\t\t\t253F2E4C1A7F5907007FD89E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t253F2E4D1A7F5907007FD89E /* Build configuration list for PBXNativeTarget \"YouTubeDraggableVideoTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t253F2E4E1A7F5907007FD89E /* Debug */,\n\t\t\t\t253F2E4F1A7F5907007FD89E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 253F2E1F1A7F5907007FD89E /* Project object */;\n}\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:YouTubeDraggableVideo.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/project.xcworkspace/xcshareddata/YouTubeDraggableVideo.xccheckout",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDESourceControlProjectFavoriteDictionaryKey</key>\n\t<false/>\n\t<key>IDESourceControlProjectIdentifier</key>\n\t<string>B696D8E4-3947-4F0E-AE1A-BBE1F3C64F66</string>\n\t<key>IDESourceControlProjectName</key>\n\t<string>YouTubeDraggableVideo</string>\n\t<key>IDESourceControlProjectOriginsDictionary</key>\n\t<dict>\n\t\t<key>C0796BA5C0F25FE444F34B630D9B7AA6F9BEA0B4</key>\n\t\t<string>https://github.com/entotsu/DraggableYoutubeFloatingVideo.git</string>\n\t</dict>\n\t<key>IDESourceControlProjectPath</key>\n\t<string>YouTubeDraggableVideo.xcodeproj</string>\n\t<key>IDESourceControlProjectRelativeInstallPathDictionary</key>\n\t<dict>\n\t\t<key>C0796BA5C0F25FE444F34B630D9B7AA6F9BEA0B4</key>\n\t\t<string>../..</string>\n\t</dict>\n\t<key>IDESourceControlProjectURL</key>\n\t<string>https://github.com/entotsu/DraggableYoutubeFloatingVideo.git</string>\n\t<key>IDESourceControlProjectVersion</key>\n\t<integer>111</integer>\n\t<key>IDESourceControlProjectWCCIdentifier</key>\n\t<string>C0796BA5C0F25FE444F34B630D9B7AA6F9BEA0B4</string>\n\t<key>IDESourceControlProjectWCConfigurations</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>IDESourceControlRepositoryExtensionIdentifierKey</key>\n\t\t\t<string>public.vcs.git</string>\n\t\t\t<key>IDESourceControlWCCIdentifierKey</key>\n\t\t\t<string>C0796BA5C0F25FE444F34B630D9B7AA6F9BEA0B4</string>\n\t\t\t<key>IDESourceControlWCCName</key>\n\t\t\t<string>DraggableYoutubeFloatingVideo</string>\n\t\t</dict>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/xcuserdata/Takuya.xcuserdatad/xcschemes/YouTubeDraggableVideo.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0630\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideo.app\"\n               BlueprintName = \"YouTubeDraggableVideo\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E3F1A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideoTests.xctest\"\n               BlueprintName = \"YouTubeDraggableVideoTests\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      buildConfiguration = \"Debug\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E3F1A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideoTests.xctest\"\n               BlueprintName = \"YouTubeDraggableVideoTests\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </TestAction>\n   <LaunchAction\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      buildConfiguration = \"Debug\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      buildConfiguration = \"Release\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/xcuserdata/sandeepmukherjee.xcuserdatad/xcschemes/YouTubeDraggableVideo.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0610\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideo.app\"\n               BlueprintName = \"YouTubeDraggableVideo\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E3F1A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideoTests.xctest\"\n               BlueprintName = \"YouTubeDraggableVideoTests\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      buildConfiguration = \"Debug\">\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"253F2E3F1A7F5907007FD89E\"\n               BuildableName = \"YouTubeDraggableVideoTests.xctest\"\n               BlueprintName = \"YouTubeDraggableVideoTests\"\n               ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n            </BuildableReference>\n         </TestableReference>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </TestAction>\n   <LaunchAction\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      buildConfiguration = \"Debug\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      buildConfiguration = \"Release\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"253F2E261A7F5907007FD89E\"\n            BuildableName = \"YouTubeDraggableVideo.app\"\n            BlueprintName = \"YouTubeDraggableVideo\"\n            ReferencedContainer = \"container:YouTubeDraggableVideo.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "YouTubeDraggableVideo.xcodeproj/xcuserdata/sandeepmukherjee.xcuserdatad/xcschemes/xcschememanagement.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>SchemeUserState</key>\n\t<dict>\n\t\t<key>YouTubeDraggableVideo.xcscheme</key>\n\t\t<dict>\n\t\t\t<key>orderHint</key>\n\t\t\t<integer>0</integer>\n\t\t</dict>\n\t</dict>\n\t<key>SuppressBuildableAutocreation</key>\n\t<dict>\n\t\t<key>253F2E261A7F5907007FD89E</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t\t<key>253F2E3F1A7F5907007FD89E</key>\n\t\t<dict>\n\t\t\t<key>primary</key>\n\t\t\t<true/>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "YouTubeDraggableVideoTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "YouTubeDraggableVideoTests/YouTubeDraggableVideoTests.m",
    "content": "//\n//  YouTubeDraggableVideoTests.m\n//  YouTubeDraggableVideoTests\n//\n//  Created by Sandeep Mukherjee on 02/02/15.\n//  Copyright (c) 2015 Sandeep Mukherjee. All rights reserved.\n//\n\n#import <UIKit/UIKit.h>\n#import <XCTest/XCTest.h>\n\n@interface YouTubeDraggableVideoTests : XCTestCase\n\n@end\n\n@implementation YouTubeDraggableVideoTests\n\n- (void)setUp {\n    [super setUp];\n    // Put setup code here. This method is called before the invocation of each test method in the class.\n}\n\n- (void)tearDown {\n    // Put teardown code here. This method is called after the invocation of each test method in the class.\n    [super tearDown];\n}\n\n- (void)testExample {\n    // This is an example of a functional test case.\n    XCTAssert(YES, @\"Pass\");\n}\n\n- (void)testPerformanceExample {\n    // This is an example of a performance test case.\n    [self measureBlock:^{\n        // Put the code you want to measure the time of here.\n    }];\n}\n\n@end\n"
  }
]