Skip to content

Instantly share code, notes, and snippets.

@mdb1
Created January 27, 2023 15:03
Show Gist options
  • Save mdb1/8b8dde9b4ccf09d237eddd661e28eff9 to your computer and use it in GitHub Desktop.
Save mdb1/8b8dde9b4ccf09d237eddd661e28eff9 to your computer and use it in GitHub Desktop.
Xcode Template - TemplateInfo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SupportsSwiftPackage</key>
<true/>
<key>Kind</key>
<string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
<key>Description</key>
<string>A SwiftUI View with it&apos;s ViewModel and the Mocks</string>
<key>Summary</key>
<string>SwiftUI View + ViewModel + Mocks</string>
<key>SortOrder</key>
<string>1</string>
<key>AllowedTypes</key>
<array>
<string>public.swift-source</string>
</array>
<key>Platforms</key>
<array/>
<key>MainTemplateFile</key>
<string>___FILEBASENAME___.swift</string>
<key>Image</key>
<dict>
<key>FileTypeIcon</key>
<string>swift</string>
</dict>
<key>Options</key>
<array>
<dict>
<key>Description</key>
<string>The name of the view to create.</string>
<key>Identifier</key>
<string>ViewName</string>
<key>Name</key>
<string>New View Name:</string>
<key>NotPersisted</key>
<true/>
<key>Required</key>
<true/>
<key>Type</key>
<string>text</string>
</dict>
<dict>
<key>Default</key>
<string>___VARIABLE_ViewName:identifier___</string>
<key>Identifier</key>
<string>productName</string>
<key>Type</key>
<string>static</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment