Skip to content

Refactor/lab5#6

Open
abiteev-ae wants to merge 7 commits intomainfrom
refactor/Lab5
Open

Refactor/lab5#6
abiteev-ae wants to merge 7 commits intomainfrom
refactor/Lab5

Conversation

@abiteev-ae
Copy link
Owner

No description provided.

case showDescriptionScreen(Model)
case changeTriangleColor(Model)
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cell.model:
{
let id: Int
let name: String
let imageURL: String
}

collectionView.model:
{
var items: [cell.model]
}

}
self?.activityIndicatorView.start()

case .loaded:
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case .loaded(let model):
setupCollectionView(model: Model)

Comment on lines 69 to 73

override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

}
if characters.isEmpty || offset != 0 {
closure(.failure(error))
print("Fuck")
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

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)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

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 {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless

}

extension HeroListViewController: UICollectionViewDataSource, UICollectionViewDelegate {
extension CharactersCollectionViewController: UICollectionViewDataSource, UICollectionViewDelegate {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DiffableDataSource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant