Skip to content

Instantly share code, notes, and snippets.

View yhkaplan's full-sized avatar
⚙️

Joshua Kaplan yhkaplan

⚙️
View GitHub Profile
@yhkaplan
yhkaplan / AutoLayoutSugar.swift
Last active January 17, 2019 10:06
AutoLayout Syntax Sugar
// Referred to the below heavily
// https://www.swiftbysundell.com/posts/building-dsls-in-swift
/* How to use:
subView.layout(on: parentView) {
$0.top <= $1.top
$0.bottom >= $1.bottom
$0.leading == $1.leading - 20.0
$0.trailing == $1.trailing + 10.0
}
*/
@yhkaplan
yhkaplan / get_derived_data.sh
Created September 19, 2018 11:37
Get DerivedData path
DERIVED_DATA_PATH=$(xcodebuild -showBuildSettings | grep PROJECT_TEMP_ROOT | grep -o '[a-zA-Z0-9/]*DerivedData')