Skip to content

Commit

Permalink
feat: swiftui view snippet (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsalves authored Apr 29, 2024
1 parent 9e55019 commit d5f74ce
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snippets/swift.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,17 @@
"prefix": "extension",
"body": ["extension ${1:Type} {", "", "\t$0", "}"],
"description": "extension declaration"
},
"swiftui-view": {
"prefix": "view",
"body": [
"struct ${1:Name}: View {",
"",
"\tvar body: some View {",
"\t\t$0",
"\t}",
"}"
],
"description": "SwiftUI view declaration"
}
}

0 comments on commit d5f74ce

Please sign in to comment.