mirror of
https://github.com/rafamadriz/friendly-snippets
synced 2024-09-16 14:04:03 +02:00
feat: swiftui view snippet (#437)
This commit is contained in:
parent
9e55019b64
commit
d5f74ce4df
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue