File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
ExampleMVVM/Presentation/MoviesScene/MoviesList/ViewModel Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 4
4
//
5
5
// Created by Oleh Kudinov on 06/04/2020.
6
6
//
7
- // **Note**: This view model is to display data and does not contain any domain model to prevent views accessing it
7
+ // **Note**: This item view model is to display data and does not contain any domain model to prevent views accessing it
8
8
9
9
import Foundation
10
10
Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ final class DefaultMoviesListViewModel: MoviesListViewModel {
54
54
var hasMorePages : Bool { currentPage < totalPageCount }
55
55
var nextPage : Int { hasMorePages ? currentPage + 1 : currentPage }
56
56
57
- fileprivate struct Page {
58
- let moviesPage : MoviesPage
59
- let items : [ MoviesListItemViewModel ]
60
- }
61
57
private var pages : [ MoviesPage ] = [ ]
62
58
private var moviesLoadTask : Cancellable ? { willSet { moviesLoadTask? . cancel ( ) } }
63
59
You can’t perform that action at this time.
0 commit comments