Skip to content

Instantly share code, notes, and snippets.

Created November 6, 2016 21:02
Show Gist options
  • Save anonymous/020882fabc8c2df7c2ef39d78cd5964b to your computer and use it in GitHub Desktop.
Save anonymous/020882fabc8c2df7c2ef39d78cd5964b to your computer and use it in GitHub Desktop.
Stuff to put in each new app project.
# Add a carthage Cartfile
github "username/Project" ~> 1.0
git "https://github.com/username/Project.git" "branch"
# Update carthage
carthage update --platform ios
# Run script
/usr/local/bin/carthage copy-frameworks
$(SRCROOT)/Carthage/Build/iOS/[framework]
# Also AppDelegate.swift didFinishLaunchingWithOptions
window = UIWindow(frame: UIScreen.main.bounds)
if let window = window {
let viewController = ViewController()
window.rootViewController = viewController
window.backgroundColor = UIColor.white
window.makeKeyAndVisible()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment