Skip to content

Instantly share code, notes, and snippets.

View erickva's full-sized avatar

Erick erickva

  • Sydney
View GitHub Profile
@erickva
erickva / Xcode build number
Created February 7, 2021 20:27 — forked from chml/Xcode build number
Using git commit count as Xcode build number
#
# https://gist.github.com/johankool/c33cffc0727b13f22f25
# Set the build number to the current git commit count.
# If we're using the Dev scheme, then we'll suffix the build
# number with the current branch name, to make collisions
# far less likely across feature branches.
# Based on:
# http://w3facility.info/question/how-do-i-force-xcode-to-rebuild-the-info-plist-file-in-my-project-every-time-i-build-the-project/
# http://blog.jaredsinclair.com/post/97193356620/the-best-of-all-possible-xcode-automated-build#fnref:p97193356620-1
#
import Foundation
import UIKit
struct ViewStyle<T> {
let style: (T) -> Void
}
let filled = ViewStyle<UIButton> {
$0.setTitleColor(.white, for: .normal)
$0.backgroundColor = .red