Open
Conversation
abiteev-ae
commented
May 5, 2023
| case showDescriptionScreen(Model) | ||
| case changeTriangleColor(Model) | ||
| } | ||
|
|
Owner
Author
There was a problem hiding this comment.
cell.model:
{
let id: Int
let name: String
let imageURL: String
}
collectionView.model:
{
var items: [cell.model]
}
abiteev-ae
commented
May 5, 2023
| } | ||
| self?.activityIndicatorView.start() | ||
|
|
||
| case .loaded: |
Owner
Author
There was a problem hiding this comment.
case .loaded(let model):
setupCollectionView(model: Model)
abiteev-ae
commented
May 5, 2023
Comment on lines
69
to
73
|
|
||
| override func viewWillAppear(_ animated: Bool) { | ||
| super.viewWillAppear(animated) | ||
| } | ||
|
|
abiteev-ae
commented
May 5, 2023
| } | ||
| if characters.isEmpty || offset != 0 { | ||
| closure(.failure(error)) | ||
| print("Fuck") |
Comment on lines
+159
to
+166
| init(from decoder: Decoder) throws { | ||
| let values = try decoder.container(keyedBy: CodingKeys.self) | ||
|
|
||
| offset = try values.decode(Int.self, forKey: .offset) | ||
| limit = try values.decode(Int.self, forKey: .limit) | ||
| total = try values.decode(Int.self, forKey: .total) | ||
| count = try values.decode(Int.self, forKey: .count) | ||
| results = try values.decode([Character].self, forKey: .results) |
Comment on lines
+152
to
+159
| enum CodingKeys: String, CodingKey { | ||
| case offset = "offset" | ||
| case limit = "limit" | ||
| case total = "total" | ||
| case count = "count" | ||
| case results = "results" | ||
| } | ||
| init(from decoder: Decoder) throws { |
| } | ||
|
|
||
| extension HeroListViewController: UICollectionViewDataSource, UICollectionViewDelegate { | ||
| extension CharactersCollectionViewController: UICollectionViewDataSource, UICollectionViewDelegate { |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.