├── .gitignore
├── README.md
├── assets
└── snippets.gif
└── snippets
├── Return AnyObserver.codesnippet
├── RxSwift:RxCocoa import statements.codesnippet
├── Weak Self With AddDisposableTo.codesnippet
└── disposeBag.codesnippet
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # RxSnippets
4 |
5 | Several snippets for work with RxSwift
6 |
7 | Demo:
8 | 
9 |
10 | #Install
11 | * Move to ~/Library/Developer/Xcode/UserData/CodeSnippets
12 | * Restart Xcode
13 |
14 | #Uninstall
15 | * reverse the above
--------------------------------------------------------------------------------
/assets/snippets.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RxSwiftCommunity/RxSnippets/3a06f14e61d24e85cd0718f4d6805983d609c13a/assets/snippets.gif
--------------------------------------------------------------------------------
/snippets/Return AnyObserver.codesnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDECodeSnippetCompletionPrefix
6 | rxob
7 | IDECodeSnippetCompletionScopes
8 |
9 | All
10 |
11 | IDECodeSnippetContents
12 | return AnyObserver { [weak self] event in
13 | guard let _self = self else { return }
14 | switch event {
15 | case let .Next(<#data#>):
16 | <##>
17 | default:
18 | break
19 | }
20 | }
21 | IDECodeSnippetIdentifier
22 | C7EFD88E-0837-4C68-A789-9258BD33A214
23 | IDECodeSnippetLanguage
24 | Xcode.SourceCodeLanguage.Swift
25 | IDECodeSnippetTitle
26 | Return AnyObserver
27 | IDECodeSnippetUserSnippet
28 |
29 | IDECodeSnippetVersion
30 | 2
31 |
32 |
33 |
--------------------------------------------------------------------------------
/snippets/RxSwift:RxCocoa import statements.codesnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDECodeSnippetCompletionPrefix
6 | rxi
7 | IDECodeSnippetCompletionScopes
8 |
9 | TopLevel
10 |
11 | IDECodeSnippetContents
12 | import RxSwift
13 | import RxCocoa
14 | IDECodeSnippetIdentifier
15 | C526A791-A297-4B4B-A14A-088C52F20DF6
16 | IDECodeSnippetLanguage
17 | Xcode.SourceCodeLanguage.Swift
18 | IDECodeSnippetTitle
19 | RxSwift/RxCocoa import statements
20 | IDECodeSnippetUserSnippet
21 |
22 | IDECodeSnippetVersion
23 | 2
24 |
25 |
26 |
--------------------------------------------------------------------------------
/snippets/Weak Self With AddDisposableTo.codesnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDECodeSnippetCompletionPrefix
6 | rxws
7 | IDECodeSnippetCompletionScopes
8 |
9 | All
10 |
11 | IDECodeSnippetContents
12 | { [weak self] <#signature#> in
13 | guard let _self = self else { return }
14 | <##>
15 | }
16 | .addDisposableTo(disposeBag)
17 | IDECodeSnippetIdentifier
18 | 5ABD469A-3D65-4B38-9FA9-D196BF9B3560
19 | IDECodeSnippetLanguage
20 | Xcode.SourceCodeLanguage.Swift
21 | IDECodeSnippetTitle
22 | Weak Self With AddDisposableTo
23 | IDECodeSnippetUserSnippet
24 |
25 | IDECodeSnippetVersion
26 | 2
27 |
28 |
29 |
--------------------------------------------------------------------------------
/snippets/disposeBag.codesnippet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDECodeSnippetCompletionPrefix
6 | rxd
7 | IDECodeSnippetCompletionScopes
8 |
9 | ClassImplementation
10 |
11 | IDECodeSnippetContents
12 | private <#var#> disposeBag = DisposeBag()
13 | IDECodeSnippetIdentifier
14 | 67A1544F-C8C4-4CB6-91F6-75ACC22E8958
15 | IDECodeSnippetLanguage
16 | Xcode.SourceCodeLanguage.Swift
17 | IDECodeSnippetTitle
18 | var disposeBag = DisposeBag()
19 | IDECodeSnippetUserSnippet
20 |
21 | IDECodeSnippetVersion
22 | 2
23 |
24 |
25 |
--------------------------------------------------------------------------------