Skip to content

Instantly share code, notes, and snippets.

@shingohry
Last active September 24, 2024 12:51
Show Gist options
  • Save shingohry/d6ab663d844e22a0269f877d707dec98 to your computer and use it in GitHub Desktop.
Save shingohry/d6ab663d844e22a0269f877d707dec98 to your computer and use it in GitHub Desktop.
Xcode file template (edited)
<?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 custom view with text</string>
<key>Summary</key>
<string>SwiftUI View</string>
<key>SortOrder</key>
<string>1</string>
<key>AllowedTypes</key>
<array>
<string>public.swift-source</string>
</array>
<key>Platforms</key>
<array />
<key>DefaultCompletionName</key>
<string>SwiftUIView</string>
<key>MainTemplateFile</key>
<string>___FILEBASENAME___.swift</string>
<key>Image</key>
<dict>
<key>FileTypeIcon</key>
<string>swift</string>
</dict>
<key>Options</key>
<array>
<dict>
<key>Identifier</key>
<string>productName</string>
<key>Required</key>
<true/>
<key>Name</key>
<string>「{入力文字列}View.swift」を追加します</string>
<key>Type</key>
<string>text</string>
</dict>
</array>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment