[
  {
    "path": ".gitignore",
    "content": ".DS_Store\n__MACOSX\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\n*.xcworkspace\n!default.xcworkspace\nxcuserdata\nprofile\n*.moved-aside\nDerivedData\n.idea/\nCrashlytics.sh\ngeneratechangelog.sh\nPods/\nCarthage\nProvisioning\nCrashlytics.sh"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2017 Guilherme Rambo\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n- Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer. \n\n- Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
  },
  {
    "path": "MultipeerDemo/Bootstrap/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 23/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n    private lazy var flowController = DemoFlowController()\n\n    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {\n        window = UIWindow()\n\n        window?.rootViewController = flowController\n\n        window?.makeKeyAndVisible()\n\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 invalidate graphics rendering callbacks. 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 active 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": "MultipeerDemo/Controllers/CSOnboardingViewController.swift",
    "content": "//\n//  CSOnboardingViewController.swift\n//  CutenessKit\n//\n//  Created by Guilherme Rambo on 22/02/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nopen class CSOnboardingViewController: UIViewController {\n\n    private struct Metrics {\n        static let buttonSpacing: CGFloat = 14\n        static let mainSpacing: CGFloat = 130\n        static let titleFontSize: CGFloat = 50\n        static let lateralMargin: CGFloat = 30\n    }\n\n    public var buttons: [CSBigRoundedButton] = []\n\n    private var buttonActions: [Int: (CSBigRoundedButton) -> Void] = [:]\n\n    public var titleFont: UIFont = UIFont.systemFont(ofSize: Metrics.titleFontSize, weight: .bold) {\n        didSet {\n            updateTitleLabel()\n        }\n    }\n\n    public var titleTextColor: UIColor = .white {\n        didSet {\n            updateTitleLabel()\n        }\n    }\n\n    public lazy var titleLabel: UILabel = {\n        let l = UILabel()\n\n        l.textAlignment = .left\n        l.font = titleFont\n        l.numberOfLines = 0\n        l.lineBreakMode = .byWordWrapping\n\n        return l\n    }()\n\n    open override var title: String? {\n        didSet {\n            updateTitleLabel()\n        }\n    }\n\n    private func prepareTitleText(with title: String?) -> NSAttributedString? {\n        guard let text = title else { return nil }\n\n        let pStyle = NSMutableParagraphStyle()\n        pStyle.alignment = titleLabel.textAlignment\n        pStyle.lineSpacing = -10\n\n        let kern: CGFloat = -0.55\n\n        let attrs: [NSAttributedString.Key: Any] = [\n            .font: titleFont,\n            .kern: kern,\n            .foregroundColor: titleTextColor,\n            .paragraphStyle: pStyle\n        ]\n\n        return NSAttributedString(string: text, attributes: attrs)\n    }\n\n    private func updateTitleLabel() {\n        titleLabel.attributedText = prepareTitleText(with: title)\n    }\n\n    @discardableResult func addButton(with title: String, animated: Bool = true, action: @escaping (CSBigRoundedButton) -> Void) -> CSBigRoundedButton {\n        let button = CSBigRoundedButton(type: .custom)\n\n        buttons.append(button)\n        buttonActions[button.hash] = action\n\n        button.addTarget(self, action: #selector(buttonAction), for: .touchUpInside)\n        button.translatesAutoresizingMaskIntoConstraints = false\n        button.setTitle(title, for: .normal)\n        button.backgroundColor = #colorLiteral(red: 0.2549019754, green: 0.2745098174, blue: 0.3019607961, alpha: 1)\n\n        button.alpha = 0\n        self.buttonsStackView.addArrangedSubview(button)\n\n        UIView.animate(withDuration: 0.3) {\n            self.view.layoutIfNeeded()\n        }\n        UIView.animate(withDuration: 0.3, delay: 0.25, options: [.beginFromCurrentState, .allowAnimatedContent, .allowUserInteraction], animations: {\n            button.alpha = 1\n        }, completion: nil)\n\n        return button\n    }\n\n    @objc private func buttonAction(_ sender: CSBigRoundedButton) {\n        buttonActions[sender.hash]?(sender)\n    }\n\n    public lazy var buttonsStackView: UIStackView = {\n        let v = UIStackView(arrangedSubviews: [])\n\n        v.axis = .vertical\n        v.spacing = Metrics.buttonSpacing\n\n        return v\n    }()\n\n    public lazy var mainStackView: UIStackView = {\n        let v = UIStackView(arrangedSubviews: [self.titleLabel, self.buttonsStackView])\n\n        v.axis = .vertical\n        v.spacing = Metrics.mainSpacing\n        v.translatesAutoresizingMaskIntoConstraints = false\n\n        return v\n    }()\n\n    open override func viewDidLoad() {\n        super.viewDidLoad()\n\n        view.backgroundColor = #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1)\n\n        view.addSubview(mainStackView)\n        mainStackView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true\n        mainStackView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: Metrics.lateralMargin).isActive = true\n        mainStackView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -Metrics.lateralMargin).isActive = true\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Controllers/DemoFlowController.swift",
    "content": "//\n//  DemoFlowController.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 23/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\nimport MobileCoreServices\n\nclass DemoFlowController: UIViewController {\n\n    private var isInDemoMode: Bool {\n        return UserDefaults.standard.bool(forKey: \"DemoMode\")\n    }\n\n    private lazy var homeViewController: CSOnboardingViewController = {\n        let c = CSOnboardingViewController()\n\n        c.title = \"Devices\"\n\n        return c\n    }()\n\n    private lazy var peerService: PeerService = {\n        let s = PeerService()\n\n        s.didFindDevice = { [weak self] deviceName in\n            self?.homeViewController.addButton(with: deviceName, action: { button in\n                self?.didTapDeviceButton(button, for: deviceName)\n            })\n        }\n        s.didReceiveFile = { [weak self] url in\n            self?.didReceiveImage(at: url)\n        }\n\n        return s\n    }()\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        installChild(homeViewController)\n\n        if isInDemoMode {\n            DispatchQueue.main.asyncAfter(deadline: .now() + 2) {\n                self.homeViewController.addButton(with: \"iPhone X Rambo\", action: { [weak self] button in\n                    self?.didTapDeviceButton(button)\n                })\n            }\n            DispatchQueue.main.asyncAfter(deadline: .now() + 3) {\n                self.homeViewController.addButton(with: \"iPhone 6S\", action: { [weak self] button in\n                    self?.didTapDeviceButton(button)\n                })\n            }\n        }\n    }\n\n    override func viewDidAppear(_ animated: Bool) {\n        super.viewDidAppear(animated)\n\n        peerService.startAdvertising()\n        peerService.startListening()\n    }\n\n    private func didTapDeviceButton(_ button: CSBigRoundedButton, for device: String = \"\") {\n        guard !isInDemoMode else {\n            runDemoUpload(for: button)\n            return\n        }\n\n        transitionIntoConnectingState(for: button)\n\n        peerService.didConnectToDevice = { [weak self] _ in\n            self?.showPhotoPicker()\n        }\n\n        peerService.connectToDevice(named: device)\n    }\n\n    private lazy var photoPickerController: UIImagePickerController = {\n        let c = UIImagePickerController()\n\n        c.mediaTypes = [kUTTypeImage as String]\n        c.delegate = self\n\n        return c\n    }()\n\n    private func showPhotoPicker() {\n        present(photoPickerController, animated: true, completion: nil)\n    }\n\n    private func runDemoUpload(for button: CSBigRoundedButton) {\n        DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: {\n            self.transitionIntoConnectingState(for: button)\n            DispatchQueue.main.asyncAfter(deadline: .now() + 1, execute: {\n                self.transitionIntoUploadingState()\n                DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {\n                    self.transitionIntoSuccessState()\n                })\n            })\n        })\n    }\n\n    private lazy var loadingController = LoadingOverlayViewController()\n\n    private func transitionIntoConnectingState(for button: CSBigRoundedButton) {\n        loadingController = LoadingOverlayViewController()\n        loadingController.title = \"Connecting\"\n\n        installChild(loadingController)\n\n        loadingController.animateIn()\n    }\n\n    private func transitionIntoUploadingState() {\n        loadingController.title = \"Uploading\"\n    }\n\n    private lazy var feedbackGenerator: UINotificationFeedbackGenerator = {\n        return UINotificationFeedbackGenerator()\n    }()\n\n    private func transitionIntoSuccessState() {\n        loadingController.hideSpinner()\n        loadingController.title = \"Done!\"\n        \n        feedbackGenerator.notificationOccurred(.success)\n\n        DispatchQueue.main.asyncAfter(deadline: .now() + 1) {\n            self.hideOverlayLoading()\n        }\n    }\n\n    private func hideOverlayLoading() {\n        loadingController.animateOut()\n    }\n\n    private func didFinishUpload(with error: Error?) {\n        NSLog(\"Did finish upload. Error: \\(String(describing: error))\")\n\n        if let error = error {\n            loadingController.title = error.localizedDescription\n            DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: {\n                self.hideOverlayLoading()\n            })\n        } else {\n            transitionIntoSuccessState()\n        }\n    }\n\n    private lazy var receivedImageController = FloatingPictureViewController()\n\n    private func didReceiveImage(at url: URL) {\n        guard let image = UIImage(contentsOfFile: url.path) else { return }\n\n        receivedImageController = FloatingPictureViewController()\n\n        installChild(receivedImageController)\n\n        receivedImageController.animate(image: image, from: .bottom)\n    }\n\n    override var preferredStatusBarStyle: UIStatusBarStyle {\n        return .lightContent\n    }\n\n}\n\nextension DemoFlowController: UIImagePickerControllerDelegate, UINavigationControllerDelegate {\n\n    func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {\n        dismiss(animated: true, completion: nil)\n        hideOverlayLoading()\n    }\n\n    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {\n// Local variable inserted by Swift 4.2 migrator.\nlet info = convertFromUIImagePickerControllerInfoKeyDictionary(info)\n\n        DispatchQueue.main.async {\n            self.transitionIntoUploadingState()\n\n            guard let image = info[convertFromUIImagePickerControllerInfoKey(UIImagePickerController.InfoKey.originalImage)] as? UIImage else {\n                NSLog(\"Invalid content!\")\n                self.hideOverlayLoading()\n                return\n            }\n\n            guard let pngData = image.withOrientationFixed.pngData() else {\n                NSLog(\"Invalid content!\")\n                self.hideOverlayLoading()\n                return\n            }\n\n            self.dismiss(animated: true, completion: nil)\n\n            self.peerService.sendPicture(with: pngData, completion: { [weak self] error in\n                self?.didFinishUpload(with: error)\n            })\n        }\n    }\n\n}\n\n// Helper function inserted by Swift 4.2 migrator.\nfileprivate func convertFromUIImagePickerControllerInfoKeyDictionary(_ input: [UIImagePickerController.InfoKey: Any]) -> [String: Any] {\n\treturn Dictionary(uniqueKeysWithValues: input.map {key, value in (key.rawValue, value)})\n}\n\n// Helper function inserted by Swift 4.2 migrator.\nfileprivate func convertFromUIImagePickerControllerInfoKey(_ input: UIImagePickerController.InfoKey) -> String {\n\treturn input.rawValue\n}\n"
  },
  {
    "path": "MultipeerDemo/Controllers/FloatingPictureViewController.swift",
    "content": "//\n//  FloatingPictureViewController.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 24/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nclass FloatingPictureViewController: UIViewController {\n\n    enum AnimationOrigin: Int {\n        case top\n        case bottom\n    }\n\n    private lazy var imageView: UIImageView = {\n        let v = UIImageView()\n\n        v.translatesAutoresizingMaskIntoConstraints = false\n        v.heightAnchor.constraint(lessThanOrEqualToConstant: UIScreen.main.bounds.height - 120).isActive = true\n        v.clipsToBounds = true\n        v.layer.cornerRadius = 10\n        v.contentMode = .scaleAspectFill\n\n        return v\n    }()\n\n    private lazy var imageViewCenteringConstraint: NSLayoutConstraint = {\n        return imageView.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: -UIScreen.main.bounds.height)\n    }()\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        view.addSubview(imageView)\n\n        imageViewCenteringConstraint.isActive = true\n        imageView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 30).isActive = true\n        imageView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -30).isActive = true\n\n        let tap = UITapGestureRecognizer(target: self, action: #selector(hide))\n        view.addGestureRecognizer(tap)\n    }\n\n    func animate(image: UIImage, from origin: AnimationOrigin) {\n        imageView.alpha = 0\n        imageView.image = image\n\n        imageViewCenteringConstraint.constant = origin == .bottom ? -UIScreen.main.bounds.height : UIScreen.main.bounds.height\n\n        UIView.animate(withDuration: 0.8, delay: 0, usingSpringWithDamping: 0.5, initialSpringVelocity: 1.2, options: [.allowAnimatedContent, .beginFromCurrentState], animations: {\n            self.imageView.alpha = 1\n            self.imageViewCenteringConstraint.constant = 0\n            self.view.setNeedsLayout()\n            self.view.layoutIfNeeded()\n        }, completion: nil)\n    }\n\n    @objc func hide() {\n        UIView.animate(withDuration: 0.4, animations: {\n            self.view.alpha = 0\n        }) { _ in\n            self.view.removeFromSuperview()\n            self.removeFromParent()\n        }\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Controllers/LoadingOverlayViewController.swift",
    "content": "//\n//  LoadingOverlayViewController.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 23/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nclass LoadingOverlayViewController: UIViewController {\n\n    private lazy var stackView: UIStackView = {\n        let v = UIStackView(arrangedSubviews: [spinner, statusLabel])\n\n        v.axis = .vertical\n        v.spacing = 16\n        v.translatesAutoresizingMaskIntoConstraints = false\n\n        return v\n    }()\n\n    override var title: String? {\n        didSet {\n            statusLabel.text = title\n        }\n    }\n\n    private lazy var statusLabel: UILabel = {\n        let l = UILabel()\n\n        l.font = UIFont.systemFont(ofSize: 14, weight: .medium)\n        l.textColor = UIColor.white.withAlphaComponent(0.8)\n        l.numberOfLines = 0\n        l.lineBreakMode = .byWordWrapping\n        l.textAlignment = .center\n\n        return l\n    }()\n\n    private lazy var spinner: UIActivityIndicatorView = {\n        return UIActivityIndicatorView(style: .white)\n    }()\n\n    override func viewWillAppear(_ animated: Bool) {\n        super.viewWillAppear(animated)\n\n        spinner.startAnimating()\n    }\n\n    override func viewWillDisappear(_ animated: Bool) {\n        super.viewWillDisappear(animated)\n\n        spinner.stopAnimating()\n    }\n\n    func animateIn() {\n        spinner.startAnimating()\n\n        UIView.animate(withDuration: 0.4) {\n            self.view.alpha = 1\n        }\n    }\n\n    func animateOut() {\n        UIView.animate(withDuration: 0.4, animations: {\n            self.view.alpha = 0\n        }) { _ in\n            self.view.removeFromSuperview()\n            self.removeFromParent()\n        }\n    }\n\n    func hideSpinner() {\n        UIView.animate(withDuration: 0.4) {\n            self.spinner.isHidden = true\n            self.spinner.alpha = 0\n            self.stackView.setNeedsLayout()\n            self.stackView.layoutIfNeeded()\n        }\n    }\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        view.isOpaque = false\n        view.backgroundColor = UIColor.black.withAlphaComponent(0.7)\n        view.alpha = 0\n\n        view.addSubview(stackView)\n        stackView.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true\n        stackView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 30).isActive = true\n        stackView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: -30).isActive = true\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Controllers/UIImage+Orientation.swift",
    "content": "//\n//  UIImage+Orientation.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 24/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nextension UIImage {\n\n    var withOrientationFixed: UIImage {\n        guard imageOrientation != .up else { return self }\n\n        UIGraphicsBeginImageContextWithOptions(size, false, scale)\n        draw(in: CGRect(origin: .zero, size: size))\n\n        guard let fixedImage = UIGraphicsGetImageFromCurrentImageContext() else {\n            fatalError(\"Failed to get image from CGContext!\")\n        }\n\n        UIGraphicsEndImageContext()\n\n        return fixedImage\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Controllers/UIViewController+Children.swift",
    "content": "//\n//  UIViewController+Children.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 23/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nextension UIViewController {\n\n    func installChild(_ controller: UIViewController) {\n        addChild(controller)\n        controller.view.autoresizingMask = [.flexibleWidth, .flexibleHeight]\n        controller.view.frame = view.bounds\n        view.addSubview(controller.view)\n        controller.didMove(toParent: self)\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Core/PeerService.swift",
    "content": "//\n//  PeerService.swift\n//  MultipeerDemo\n//\n//  Created by Guilherme Rambo on 23/03/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\nimport MultipeerConnectivity\n\nfinal class PeerService: NSObject {\n\n    var didFindDevice: ((_ name: String) -> Void)?\n\n    var didConnectToDevice: ((_ name: String) -> Void)?\n\n    var didReceiveFile: ((_ url: URL) -> Void)?\n\n    // MD1\n    lazy var me: MCPeerID = {\n        let peer: MCPeerID\n\n        if let peerData = UserDefaults.standard.data(forKey: \"mePeerID\") {\n            guard let unarchivedPeer = NSKeyedUnarchiver.unarchiveObject(with: peerData) as? MCPeerID else {\n                fatalError(\"mePeerID in user defaults is not a MCPeerID. WHAT?\")\n            }\n\n            peer = unarchivedPeer\n        } else {\n            peer = MCPeerID(displayName: UIDevice.current.name)\n\n            let peerData = NSKeyedArchiver.archivedData(withRootObject: peer)\n            UserDefaults.standard.set(peerData, forKey: \"mePeerID\")\n            UserDefaults.standard.synchronize()\n        }\n\n        return peer\n    }()\n\n    // MD2\n    lazy var session: MCSession = {\n        let s = MCSession(peer: me, securityIdentity: nil, encryptionPreference: .none)\n\n        s.delegate = self\n\n        return s\n    }()\n\n    // MD4\n    lazy var advertiser: MCNearbyServiceAdvertiser = {\n        let a = MCNearbyServiceAdvertiser(peer: me, discoveryInfo: [\"demo\": \"data\"], serviceType: \"MultipeerDemo\")\n\n        a.delegate = self\n\n        return a\n    }()\n\n    // MD7\n    lazy var browser: MCNearbyServiceBrowser = {\n        let b = MCNearbyServiceBrowser(peer: me, serviceType: \"MultipeerDemo\")\n\n        b.delegate = self\n\n        return b\n    }()\n\n    func startAdvertising() {\n        // MD6\n        advertiser.startAdvertisingPeer()\n    }\n\n    func startListening() {\n        // MD9\n        browser.startBrowsingForPeers()\n    }\n\n    private var devices: [String: MCPeerID] = [:]\n\n    func connectToDevice(named name: String) {\n        // MD10\n        guard let peer = devices[name] else { return }\n\n        guard !session.connectedPeers.contains(peer) else {\n            didConnectToDevice?(peer.displayName)\n            return\n        }\n\n        browser.invitePeer(peer, to: session, withContext: nil, timeout: 10)\n    }\n\n    func sendPicture(with data: Data, completion: @escaping (Error?) -> Void) {\n        // MD11\n        guard let peer = session.connectedPeers.last else {\n            NSLog(\"No connected peers to send to\")\n            return\n        }\n\n        guard let baseURL = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first else {\n            fatalError(\"No caches directory. WHAT?!\")\n        }\n\n        let filename = UUID().uuidString + \".png\"\n\n        let fileURL = baseURL.appendingPathComponent(filename)\n\n        do {\n            try data.write(to: fileURL, options: .atomicWrite)\n\n            session.sendResource(at: fileURL,\n                                 withName: filename,\n                                 toPeer: peer,\n                                 withCompletionHandler: completion)\n        } catch {\n            completion(error)\n        }\n    }\n\n}\n\n// MD8\nextension PeerService: MCNearbyServiceBrowserDelegate {\n\n    func browser(_ browser: MCNearbyServiceBrowser, foundPeer peerID: MCPeerID, withDiscoveryInfo info: [String : String]?) {\n        guard devices[peerID.displayName] == nil else { return }\n\n        devices[peerID.displayName] = peerID\n\n        DispatchQueue.main.async {\n            self.didFindDevice?(peerID.displayName)\n        }\n    }\n\n    func browser(_ browser: MCNearbyServiceBrowser, lostPeer peerID: MCPeerID) {\n        NSLog(\"Puke\")\n    }\n\n}\n\n// MD5\nextension PeerService: MCNearbyServiceAdvertiserDelegate {\n\n    func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didReceiveInvitationFromPeer peerID: MCPeerID, withContext context: Data?, invitationHandler: @escaping (Bool, MCSession?) -> Void) {\n        // This is insecure! We should verify that the peer is valid and etc etc\n        invitationHandler(true, session)\n    }\n\n    func advertiser(_ advertiser: MCNearbyServiceAdvertiser, didNotStartAdvertisingPeer error: Error) {\n        NSLog(\"Woops! Advertising failed with error \\(String(describing: error))\")\n    }\n\n}\n\n// MD3\nextension PeerService: MCSessionDelegate {\n\n    func session(_ session: MCSession, peer peerID: MCPeerID, didChange state: MCSessionState) {\n        switch state {\n        case .connected:\n            print(\"Now connected to \\(peerID.displayName)\")\n            DispatchQueue.main.async {\n                self.didConnectToDevice?(peerID.displayName)\n            }\n        case .connecting:\n            print(\"Connecting to \\(peerID.displayName)\")\n        case .notConnected:\n            print(\"NOT connected to \\(peerID.displayName)\")\n        @unknown default:\n            print(\"Unknown state \\(state)\")\n        }\n    }\n\n    func session(_ session: MCSession, didReceive data: Data, fromPeer peerID: MCPeerID) {\n\n    }\n\n    func session(_ session: MCSession, didReceive stream: InputStream, withName streamName: String, fromPeer peerID: MCPeerID) {\n\n    }\n\n    func session(_ session: MCSession, didStartReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, with progress: Progress) {\n        NSLog(\"Started resource download: \\(resourceName)\")\n    }\n\n    func session(_ session: MCSession, didFinishReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, at localURL: URL?, withError error: Error?) {\n        NSLog(\"Finished resource download: \\(resourceName)\")\n\n        // MD12\n        guard let url = localURL else { return }\n\n        DispatchQueue.main.async {\n            self.didReceiveFile?(url)\n        }\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"20x20\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"83.5x83.5\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "MultipeerDemo/Resources/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"13771\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" useSafeAreas=\"YES\" colorMatched=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <device id=\"retina4_7\" orientation=\"portrait\">\n        <adaptation id=\"fullscreen\"/>\n    </device>\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"13772\"/>\n        <capability name=\"Safe area layout guides\" minToolsVersion=\"9.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" red=\"0.0\" green=\"0.0\" blue=\"0.0\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"displayP3\"/>\n                        <viewLayoutGuide key=\"safeArea\" id=\"6Tk-OE-BBY\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "MultipeerDemo/Resources/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>$(DEVELOPMENT_LANGUAGE)</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>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>NSPhotoLibraryUsageDescription</key>\n\t<string>Send pictures to other devices</string>\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>UIStatusBarStyle</key>\n\t<string>UIStatusBarStyleLightContent</string>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "MultipeerDemo/Views/CSBigRoundedButton.swift",
    "content": "//\n//  CSBigRoundedButton.swift\n//  CutenessKit\n//\n//  Created by Guilherme Rambo on 22/02/18.\n//  Copyright © 2018 Guilherme Rambo. All rights reserved.\n//\n\nimport UIKit\n\nopen class CSBigRoundedButton: UIButton {\n\n    public enum HighlightStyle: Int {\n        case darker\n        case lighter\n    }\n\n    public var highlightStyle: HighlightStyle = .darker {\n        didSet {\n            guard highlightStyle != oldValue else { return }\n\n            updateHighlightLayerBackground()\n        }\n    }\n\n    private struct Metrics {\n        static let height: CGFloat = 47\n        static let cornerRadius: CGFloat = 11\n\n        struct Animation {\n            static let highlightDuration: TimeInterval = 0.3\n            static let bounceDurationIn: TimeInterval = 0.6\n            static let bounceDurationOut: TimeInterval = 0.8\n            static let springVelocity: CGFloat = 1.2\n            static let springDamping: CGFloat = 0.4\n        }\n    }\n\n    public var titleFont: UIFont = UIFont.systemFont(ofSize: 16, weight: .medium)\n\n    public var cornerRadius: CGFloat = Metrics.cornerRadius {\n        didSet {\n            setNeedsLayout()\n        }\n    }\n\n    public var bounces = true\n\n    private var _backgroundColor: UIColor?\n\n    open override var backgroundColor: UIColor? {\n        get {\n            return _backgroundColor\n        }\n        set {\n            _backgroundColor = newValue\n\n            updateAppearance()\n        }\n    }\n\n    public override init(frame: CGRect) {\n        super.init(frame: frame)\n\n        setup()\n    }\n\n    public required init?(coder aDecoder: NSCoder) {\n        super.init(coder: aDecoder)\n\n        setup()\n    }\n\n    open override func layoutSubviews() {\n        super.layoutSubviews()\n\n        updateAppearance()\n    }\n\n    private lazy var backgroundLayer: CALayer = CALayer()\n\n    private lazy var highlightLayer: CALayer = {\n        let l = CALayer()\n\n        l.opacity = 0\n\n        return l\n    }()\n\n    private var customizedFont = false\n\n    private func setup() {\n        backgroundLayer.addSublayer(highlightLayer)\n\n        setTitleColor(.white, for: .normal)\n\n        layer.addSublayer(backgroundLayer)\n\n        updateAppearance()\n\n        addTarget(self,\n                  action: #selector(transitionIntoHighlightedAppearance),\n                  for: [.touchDown, .touchDragEnter])\n\n        addTarget(self,\n                  action: #selector(transitionIntoNormalAppearance),\n                  for: [.touchUpInside, .touchDragExit, .touchUpOutside])\n\n        updateHighlightLayerBackground()\n    }\n\n    private func updateAppearance() {\n        backgroundLayer.zPosition = 1\n\n        titleLabel?.layer.zPosition = 2\n        titleLabel?.font = titleFont\n\n        backgroundLayer.masksToBounds = true\n        backgroundLayer.cornerRadius = cornerRadius\n        backgroundLayer.frame = layer.bounds\n        backgroundLayer.backgroundColor = backgroundColor?.cgColor\n\n        highlightLayer.frame = layer.bounds\n    }\n\n    private func updateHighlightLayerBackground() {\n        switch highlightStyle {\n        case .lighter:\n            highlightLayer.backgroundColor = UIColor.white.withAlphaComponent(0.15).cgColor\n        case .darker:\n            highlightLayer.backgroundColor = UIColor.black.withAlphaComponent(0.2).cgColor\n        }\n    }\n\n    open override var intrinsicContentSize: CGSize {\n        return CGSize(width: UIView.noIntrinsicMetric, height: Metrics.height)\n    }\n\n    private let animationOptions: UIView.AnimationOptions = [\n        .beginFromCurrentState,\n        .allowAnimatedContent,\n        .allowUserInteraction\n    ]\n\n    @objc private func transitionIntoHighlightedAppearance() {\n        UIView.animate(withDuration: Metrics.Animation.highlightDuration,\n                       delay: 0,\n                       options: animationOptions,\n                       animations:\n            {\n                self.highlightLayer.opacity = 1\n        }, completion: nil)\n\n        bounceInIfNeeded()\n    }\n\n    private func bounceInIfNeeded() {\n        guard bounces else { return }\n\n        UIView.animate(withDuration: Metrics.Animation.bounceDurationIn,\n                       delay: 0, usingSpringWithDamping: Metrics.Animation.springDamping,\n                       initialSpringVelocity: Metrics.Animation.springVelocity,\n                       options: animationOptions,\n                       animations:\n            {\n                self.layer.transform = CATransform3DMakeScale(0.95, 0.95, 1)\n        }, completion: nil)\n    }\n\n    @objc private func transitionIntoNormalAppearance() {\n        UIView.animate(withDuration: Metrics.Animation.highlightDuration,\n                       delay: 0,\n                       options: animationOptions,\n                       animations:\n            {\n                self.highlightLayer.opacity = 0\n        }, completion: nil)\n\n        bounceOutIfNeeded()\n    }\n\n    private func bounceOutIfNeeded() {\n        guard bounces else { return }\n\n        UIView.animate(withDuration: Metrics.Animation.bounceDurationOut,\n                       delay: 0, usingSpringWithDamping: Metrics.Animation.springDamping,\n                       initialSpringVelocity: Metrics.Animation.springVelocity,\n                       options: animationOptions,\n                       animations:\n            {\n                self.layer.transform = CATransform3DIdentity\n        }, completion: nil)\n    }\n\n}\n"
  },
  {
    "path": "MultipeerDemo.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tDD02F68C2065B1A6003D8E64 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD02F68B2065B1A6003D8E64 /* AppDelegate.swift */; };\n\t\tDD02F6932065B1A6003D8E64 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DD02F6922065B1A6003D8E64 /* Assets.xcassets */; };\n\t\tDD02F6962065B1A6003D8E64 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = DD02F6942065B1A6003D8E64 /* LaunchScreen.storyboard */; };\n\t\tDD02F6A22065B1E4003D8E64 /* CSBigRoundedButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD02F6A12065B1E4003D8E64 /* CSBigRoundedButton.swift */; };\n\t\tDDAC10322066063F008EE2C1 /* FloatingPictureViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDAC10312066063F008EE2C1 /* FloatingPictureViewController.swift */; };\n\t\tDDAC1034206609E6008EE2C1 /* UIImage+Orientation.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDAC1033206609E6008EE2C1 /* UIImage+Orientation.swift */; };\n\t\tDDF978BC2065B27800637CC9 /* CSOnboardingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF978BB2065B27800637CC9 /* CSOnboardingViewController.swift */; };\n\t\tDDF978BE2065B2C600637CC9 /* DemoFlowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF978BD2065B2C600637CC9 /* DemoFlowController.swift */; };\n\t\tDDF978C02065B84500637CC9 /* LoadingOverlayViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF978BF2065B84500637CC9 /* LoadingOverlayViewController.swift */; };\n\t\tDDF978C22065BC7000637CC9 /* UIViewController+Children.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF978C12065BC7000637CC9 /* UIViewController+Children.swift */; };\n\t\tDDF978C52065CC2E00637CC9 /* PeerService.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDF978C42065CC2E00637CC9 /* PeerService.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\tDD02F6882065B1A6003D8E64 /* MultipeerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MultipeerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tDD02F68B2065B1A6003D8E64 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\tDD02F6922065B1A6003D8E64 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\tDD02F6952065B1A6003D8E64 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\tDD02F6972065B1A6003D8E64 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tDD02F6A12065B1E4003D8E64 /* CSBigRoundedButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CSBigRoundedButton.swift; sourceTree = \"<group>\"; };\n\t\tDDAC10312066063F008EE2C1 /* FloatingPictureViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FloatingPictureViewController.swift; sourceTree = \"<group>\"; };\n\t\tDDAC1033206609E6008EE2C1 /* UIImage+Orientation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"UIImage+Orientation.swift\"; sourceTree = \"<group>\"; };\n\t\tDDF978BB2065B27800637CC9 /* CSOnboardingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CSOnboardingViewController.swift; sourceTree = \"<group>\"; };\n\t\tDDF978BD2065B2C600637CC9 /* DemoFlowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoFlowController.swift; sourceTree = \"<group>\"; };\n\t\tDDF978BF2065B84500637CC9 /* LoadingOverlayViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoadingOverlayViewController.swift; sourceTree = \"<group>\"; };\n\t\tDDF978C12065BC7000637CC9 /* UIViewController+Children.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = \"UIViewController+Children.swift\"; sourceTree = \"<group>\"; };\n\t\tDDF978C42065CC2E00637CC9 /* PeerService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PeerService.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tDD02F6852065B1A6003D8E64 /* 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\tDD02F67F2065B1A6003D8E64 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F68A2065B1A6003D8E64 /* MultipeerDemo */,\n\t\t\t\tDD02F6892065B1A6003D8E64 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F6892065B1A6003D8E64 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F6882065B1A6003D8E64 /* MultipeerDemo.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F68A2065B1A6003D8E64 /* MultipeerDemo */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDDF978C32065CC0100637CC9 /* Core */,\n\t\t\t\tDD02F6A02065B1B9003D8E64 /* Resources */,\n\t\t\t\tDD02F69F2065B1B5003D8E64 /* Views */,\n\t\t\t\tDD02F69E2065B1B0003D8E64 /* Bootstrap */,\n\t\t\t\tDD02F69D2065B1AC003D8E64 /* Controllers */,\n\t\t\t);\n\t\t\tpath = MultipeerDemo;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F69D2065B1AC003D8E64 /* Controllers */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDDF978C12065BC7000637CC9 /* UIViewController+Children.swift */,\n\t\t\t\tDDAC1033206609E6008EE2C1 /* UIImage+Orientation.swift */,\n\t\t\t\tDDF978BB2065B27800637CC9 /* CSOnboardingViewController.swift */,\n\t\t\t\tDDF978BF2065B84500637CC9 /* LoadingOverlayViewController.swift */,\n\t\t\t\tDDAC10312066063F008EE2C1 /* FloatingPictureViewController.swift */,\n\t\t\t\tDDF978BD2065B2C600637CC9 /* DemoFlowController.swift */,\n\t\t\t);\n\t\t\tpath = Controllers;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F69E2065B1B0003D8E64 /* Bootstrap */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F68B2065B1A6003D8E64 /* AppDelegate.swift */,\n\t\t\t);\n\t\t\tpath = Bootstrap;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F69F2065B1B5003D8E64 /* Views */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F6A12065B1E4003D8E64 /* CSBigRoundedButton.swift */,\n\t\t\t);\n\t\t\tpath = Views;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDD02F6A02065B1B9003D8E64 /* Resources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F6922065B1A6003D8E64 /* Assets.xcassets */,\n\t\t\t\tDD02F6942065B1A6003D8E64 /* LaunchScreen.storyboard */,\n\t\t\t\tDD02F6972065B1A6003D8E64 /* Info.plist */,\n\t\t\t);\n\t\t\tpath = Resources;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDDF978C32065CC0100637CC9 /* Core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDDF978C42065CC2E00637CC9 /* PeerService.swift */,\n\t\t\t);\n\t\t\tpath = Core;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tDD02F6872065B1A6003D8E64 /* MultipeerDemo */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = DD02F69A2065B1A6003D8E64 /* Build configuration list for PBXNativeTarget \"MultipeerDemo\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tDD02F6842065B1A6003D8E64 /* Sources */,\n\t\t\t\tDD02F6852065B1A6003D8E64 /* Frameworks */,\n\t\t\t\tDD02F6862065B1A6003D8E64 /* 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 = MultipeerDemo;\n\t\t\tproductName = MultipeerDemo;\n\t\t\tproductReference = DD02F6882065B1A6003D8E64 /* MultipeerDemo.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tDD02F6802065B1A6003D8E64 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0920;\n\t\t\t\tLastUpgradeCheck = 1030;\n\t\t\t\tORGANIZATIONNAME = \"Guilherme Rambo\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tDD02F6872065B1A6003D8E64 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 9.2;\n\t\t\t\t\t\tLastSwiftMigration = 1030;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = DD02F6832065B1A6003D8E64 /* Build configuration list for PBXProject \"MultipeerDemo\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\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 = DD02F67F2065B1A6003D8E64;\n\t\t\tproductRefGroup = DD02F6892065B1A6003D8E64 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tDD02F6872065B1A6003D8E64 /* MultipeerDemo */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tDD02F6862065B1A6003D8E64 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDD02F6962065B1A6003D8E64 /* LaunchScreen.storyboard in Resources */,\n\t\t\t\tDD02F6932065B1A6003D8E64 /* Assets.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tDD02F6842065B1A6003D8E64 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDDF978C52065CC2E00637CC9 /* PeerService.swift in Sources */,\n\t\t\t\tDDF978BE2065B2C600637CC9 /* DemoFlowController.swift in Sources */,\n\t\t\t\tDDF978C22065BC7000637CC9 /* UIViewController+Children.swift in Sources */,\n\t\t\t\tDD02F6A22065B1E4003D8E64 /* CSBigRoundedButton.swift in Sources */,\n\t\t\t\tDDF978BC2065B27800637CC9 /* CSOnboardingViewController.swift in Sources */,\n\t\t\t\tDDAC10322066063F008EE2C1 /* FloatingPictureViewController.swift in Sources */,\n\t\t\t\tDD02F68C2065B1A6003D8E64 /* AppDelegate.swift in Sources */,\n\t\t\t\tDDF978C02065B84500637CC9 /* LoadingOverlayViewController.swift in Sources */,\n\t\t\t\tDDAC1034206609E6008EE2C1 /* UIImage+Orientation.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\tDD02F6942065B1A6003D8E64 /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tDD02F6952065B1A6003D8E64 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tDD02F6982065B1A6003D8E64 /* 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_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\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_DOCUMENTATION_COMMENTS = YES;\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_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_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\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_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 = 11.2;\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\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tDD02F6992065B1A6003D8E64 /* 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_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\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_DOCUMENTATION_COMMENTS = YES;\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_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_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\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 = gnu11;\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 = 11.2;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tDD02F69B2065B1A6003D8E64 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = 8C7439RJLG;\n\t\t\t\tINFOPLIST_FILE = MultipeerDemo/Resources/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = br.com.guilhermerambo.MultipeerDemo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tDD02F69C2065B1A6003D8E64 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tDEVELOPMENT_TEAM = 8C7439RJLG;\n\t\t\t\tINFOPLIST_FILE = MultipeerDemo/Resources/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = br.com.guilhermerambo.MultipeerDemo;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tDD02F6832065B1A6003D8E64 /* Build configuration list for PBXProject \"MultipeerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tDD02F6982065B1A6003D8E64 /* Debug */,\n\t\t\t\tDD02F6992065B1A6003D8E64 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tDD02F69A2065B1A6003D8E64 /* Build configuration list for PBXNativeTarget \"MultipeerDemo\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tDD02F69B2065B1A6003D8E64 /* Debug */,\n\t\t\t\tDD02F69C2065B1A6003D8E64 /* 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 = DD02F6802065B1A6003D8E64 /* Project object */;\n}\n"
  },
  {
    "path": "MultipeerDemo.xcodeproj/xcshareddata/xcschemes/MultipeerDemo.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1030\"\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 = \"DD02F6872065B1A6003D8E64\"\n               BuildableName = \"MultipeerDemo.app\"\n               BlueprintName = \"MultipeerDemo\"\n               ReferencedContainer = \"container:MultipeerDemo.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"DD02F6872065B1A6003D8E64\"\n            BuildableName = \"MultipeerDemo.app\"\n            BlueprintName = \"MultipeerDemo\"\n            ReferencedContainer = \"container:MultipeerDemo.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"DD02F6872065B1A6003D8E64\"\n            BuildableName = \"MultipeerDemo.app\"\n            BlueprintName = \"MultipeerDemo\"\n            ReferencedContainer = \"container:MultipeerDemo.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <CommandLineArguments>\n         <CommandLineArgument\n            argument = \"-DemoMode YES\"\n            isEnabled = \"NO\">\n         </CommandLineArgument>\n      </CommandLineArguments>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"DD02F6872065B1A6003D8E64\"\n            BuildableName = \"MultipeerDemo.app\"\n            BlueprintName = \"MultipeerDemo\"\n            ReferencedContainer = \"container:MultipeerDemo.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": "README.md",
    "content": "# MultipeerDemo\n\nA sample app showing how to transfer files between two devices using [MultipeerConnectivity](https://developer.apple.com/documentation/multipeerconnectivity).\n\nThis sample app is part of my talk on MultipeerConnectivity, you can get the [slides in Portuguese](GuilhermeRambo-MultipeerConnectivity-pt.pdf) and [in English](./GuilhermeRambo-MultipeerConnectivity-en.pdf).\n\n![GIF shows a device sending a picture to another device over the air](./demo.gif)"
  }
]