This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #define WeakSelf __weak __typeof(self) weakSelf = self | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | KEYWORDS="TODO:|NOTE:|FIXME:|\?\?\?:|\!\!\!:" | |
| find "${SRCROOT}/Classes" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // | |
| // CoreDataStack.swift | |
| // Jose | |
| // | |
| // Created by JOSE ANTONIO MARTINEZ FERNANDEZ on 31/10/2016. | |
| // Copyright © 2016 joamafer. All rights reserved. | |
| // | |
| import UIKit | |
| import CoreData | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | func add(viewController: UIViewController, toContainerView containerView: UIView) { | |
| viewController.view.translatesAutoresizingMaskIntoConstraints = false | |
| addChildViewController(viewController) | |
| containerView.addSubview(viewController.view) | |
| viewController.didMove(toParentViewController: self) | |
| viewController.view.topAnchor.constraint(equalTo: containerView.topAnchor).isActive = true | |
| viewController.view.leadingAnchor.constraint(equalTo: containerView.leadingAnchor).isActive = true | |
| viewController.view.bottomAnchor.constraint(equalTo: containerView.bottomAnchor).isActive = true | |
| viewController.view.rightAnchor.constraint(equalTo: containerView.rightAnchor).isActive = true | |
| } |