This file contains 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
#!/usr/bin/swift | |
/* Git commit hook. Place it into your .git/hooks folder with 'prepare-commit-msg' name | |
#!/bin/sh | |
echo "Start prepare-commit-msg hook" | |
COMMIT_MSG_FILE=$1 | |
COMMIT_SOURCE=$2 | |
#SHA1=$3 |
This file contains 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
#!/usr/bin/xcrun --sdk macosx swift | |
/* | |
Create `test.plist` file in project dir | |
Add `PlistCodeGenerator.swift` file to project dir | |
Add to build phases: ${PROJECT_DIR}/PlistCodeGenerator.swift | |
Add output.swift to project target | |
*/ | |
import Foundation |
This file contains 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
import UIKit | |
extension UIViewController | |
{ | |
// Storyboard identifier from class name | |
class var storyboardId: String { | |
var storyboardId = "" | |
let components = String(describing: self).components(separatedBy: ".") | |