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
ssh-keygen -t rsa -C "ambaschobsanti@gmail.com" && pbcopy < ~/.ssh/id_rsa.pub |
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
This is Brazil |
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
Podfile | |
Podfile.lock | |
Pods | |
Resources | |
Scripts | |
TWMappingKit | |
TaskKit | |
TaskKitTests | |
TaskReactiveKit | |
TaskReactiveKitTests |
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
sed -i '' 's/nullable//g' $(grep -lr --exclude-dir=".git" -e "nullable" .) |
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
sed -i '' 's/nullable//g' $(grep -lr --exclude-dir=".git" -e "nullable" .) |
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
- (void)controllerWillChangeContent { | |
[self.tableView beginUpdates]; | |
} | |
- (void)controllerDidChangeSection:(RBQFetchedResultsSectionInfo *)section atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type { | |
switch (type) { | |
case NSFetchedResultsChangeInsert: | |
[self.insertSections addObject:@(sectionIndex)]; | |
break; | |
case NSFetchedResultsChangeDelete: |
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
extension Dictionary { | |
mutating func merge<S>(_ other: S) where S: Sequence, S.Iterator.Element == (key: Key, value: Value) { | |
for (k, v) in other { | |
let old = self[k] | |
self[k] = merge(old, r: v) | |
} | |
} | |
} | |
extension Dictionary { |
-
Start with Classes -> Modules -> Cart -> Section
-
In this folder you can see all section type that we have in cart. ( PS. LACartSection is legacy class)
-
I use
IGListBindingSectionController
for SectionController with this way it will automatically bind viewModel and cell for us. -
in sectionController class, we have to implement some dataSource methods
- First we need to return all viewModel for section
- Each viewModel will map to cell so relationship for viewModel and cell will be 1 to 1. So its mean a viewModel will have a cell to show.
- I use category to separate logic for build viewModels , for the final result we will return array of viewModel to IGListKit and all of this viewModel will be mapped to cell.
- You can check
category
in folderClasses -> Modules -> Cart -> Categories
-
If you start reading code at sectionController you will see category of viewModel try to ask a list of viewModel from child viewModel . I use this way because I try to separate viewModel bui