Skip to content

Instantly share code, notes, and snippets.

@hechen
Last active September 25, 2017 06:25
Show Gist options
  • Save hechen/e582e5b3cf09fbda532e907d055e01b8 to your computer and use it in GitHub Desktop.
Save hechen/e582e5b3cf09fbda532e907d055e01b8 to your computer and use it in GitHub Desktop.
--- title: "Initializes View" summary: "Initializes a view inside a code block" completion-scope: Function or Method ---
<# view #> = ({
UIView *v = [[UIView alloc] init];
<# ... #>
v;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment