Code snippets for use in Xcode