Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added common UIApplicationDelegate methods & new Mark Snippet (#28)
* Added Swift UIApplicationDelegate methods snippet. Even though Xcode fills the AppDelegate with necessary delegate methods during a new project creation, I thought why not include this as a snippet which might help and come in handy sometimes. * Elegant mark code snippet added * Added screenshot image for elegant mark * Updated Readme file for uiapplicationdelegate and elegant mark
- Loading branch information
1 parent
c9ec24a
commit 7f4a67d
Showing
4 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?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>IDECodeSnippetCompletionPrefix</key> | ||
<string>swift-elegantmark</string> | ||
<key>IDECodeSnippetCompletionScopes</key> | ||
<array> | ||
<string>All</string> | ||
</array> | ||
<key>IDECodeSnippetContents</key> | ||
<string> | ||
//////////////////////////////////////////////////////////////// | ||
//MARK:- | ||
//MARK:<#Section#> | ||
//MARK:- | ||
//////////////////////////////////////////////////////////////// | ||
</string> | ||
<key>IDECodeSnippetIdentifier</key> | ||
<string>76C4B4B4-1F7D-41D8-9CE2-0E4E36C668D0</string> | ||
<key>IDECodeSnippetLanguage</key> | ||
<string>Xcode.SourceCodeLanguage.Generic</string> | ||
<key>IDECodeSnippetSummary</key> | ||
<string>Decorates mark statements and makes it neat when looking through items in File Jump Bar</string> | ||
<key>IDECodeSnippetTitle</key> | ||
<string>Elegant Mark</string> | ||
<key>IDECodeSnippetUserSnippet</key> | ||
<true/> | ||
<key>IDECodeSnippetVersion</key> | ||
<integer>2</integer> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?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>IDECodeSnippetCompletionPrefix</key> | ||
<string>swift-uiapplicationdelegate</string> | ||
<key>IDECodeSnippetCompletionScopes</key> | ||
<array> | ||
<string>ClassImplementation</string> | ||
</array> | ||
<key>IDECodeSnippetContents</key> | ||
<string>func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | ||
|
||
return true | ||
} | ||
|
||
func applicationWillResignActive(_ application: UIApplication) { | ||
|
||
} | ||
|
||
func applicationDidBecomeActive(_ application: UIApplication) { | ||
|
||
} | ||
|
||
func applicationWillEnterForeground(_ application: UIApplication) { | ||
|
||
} | ||
|
||
func applicationDidEnterBackground(_ application: UIApplication) { | ||
|
||
} | ||
|
||
func applicationWillTerminate(_ application: UIApplication) { | ||
|
||
}</string> | ||
<key>IDECodeSnippetIdentifier</key> | ||
<string>CB10B10E-410C-4668-8B94-4322438AE77B</string> | ||
<key>IDECodeSnippetLanguage</key> | ||
<string>Xcode.SourceCodeLanguage.Swift</string> | ||
<key>IDECodeSnippetSummary</key> | ||
<string>Commonly used app life cycle methods</string> | ||
<key>IDECodeSnippetTitle</key> | ||
<string>Swift - UIApplication Delegate methods</string> | ||
<key>IDECodeSnippetUserSnippet</key> | ||
<true/> | ||
<key>IDECodeSnippetVersion</key> | ||
<integer>0</integer> | ||
</dict> | ||
</plist> |